QPainter painter; painter.begin(&image); painter.scale(2, 2); painter.drawPixmap(QPoint(0, 0), pixmap); painter.end();
QPainter painter; painter.begin(&drawing); for(int i = 1; i < 10; i++){ painter.scale(i/10.0, i/10.0); painter.drawPath(path); } painter.end();Package library: Qt Core.