C++ (Qt)scene->addText(QString::number(ti),serifFont);scene->setPos (100,100);scene->setDefaultTextColor (Qt::gray );
C++ (Qt)QGraphicsTextItem* it = scene->addText(QString::number(ti),serifFont);ti->setPos (100,100);ti->setDefaultTextColor (Qt::gray );
QGraphicsView view_save(scene); QPixmap pixmap = QPixmap::grabWidget(&view_save); QString puti_save; puti_save.append(serial1).append(".png"); pixmap.save(puti_save);