C++ (Qt)QImage img;QPainter p( &img ); scene1->render( &p );scene2->render( &p );
QImage img; img.fill(QColor(Qt::white).rgb()); QPainter p( &img ); scene->render( &p ); scene2->render( &p ); img.save(QString("/Graphic_test/%1.PNG").arg(serial1_1));
QImage image(scene->width(), scene2->height(), QImage::Format_ARGB32_Premultiplied);
QImage img(scene->width(), scene2->height(), QImage::Format_ARGB32_Premultiplied); img.fill(QColor(Qt::white).rgb()); QPainter p( &img ); scene->render( &p ); scene2->render( &p ); img.save(QString("/Graphic_test/%1.PNG").arg(serial1_1));
C++ (Qt)Painter p;p.begin( &img ); scene->render( &p );p.end();p.begin( &img ); scene2->render( &p );p.end();
QImage img(scene->width(), scene2->height()*2, QImage::Format_ARGB32_Premultiplied); img.fill(QColor(Qt::white).rgb()); QPainter p( &img ); p.end(); scene->render( &p ); scene2->render( &p ); img.save(QString("/Graphic_test/%1.PNG").arg(serial1_1));