我在Qt Creator的作业中工作,在那里我画到QWidget,我需要保存这个QWdiget的一部分.
我试图解决这个问题:
QPixmap pixmap; pixmap.copy(rectangle); // rectangle is part of QWidget, which I need to save pixmap.save("example.png");
谢谢你的帮助.
qt save qwidget qpixmap
qpixmap ×1
qt ×1
qwidget ×1
save ×1