itsGraphicResourceScene
->render
(paint,
QRectF(),
QRectF(3070,
0,
960,
600));
paint->end();
img->save("test1.png", "png");
delete img;
delete paint;
itsGraphicResourceScene
->render
(paint,
QRectF(),
QRectF(3910,
0,
960,
600));
paint->end();
img->save("test2.png", "png");
delete img;
delete paint;
QImage *img;
QPainter *paint;
img = new QImage(QSize(960, 600), QImage::Format_ARGB32);
paint = new QPainter(img);
itsGraphicResourceScene->render(paint, QRectF(), QRectF(3070, 0, 960, 600));
paint->end();
img->save("test1.png", "png");
delete img;
delete paint;
img = new QImage(QSize(960, 600), QImage::Format_ARGB32);
paint = new QPainter(img);
itsGraphicResourceScene->render(paint, QRectF(), QRectF(3910, 0, 960, 600));
paint->end();
img->save("test2.png", "png");
delete img;
delete paint;
To copy to clipboard, switch view to plain text mode
Bookmarks