I am working on my homework in Qt Creator, where I draw a QWidget, and I need to save some of this QWdiget.
I tried to solve this problem:
QPixmap pixmap; pixmap.copy(rectangle); // rectangle is part of QWidget, which I need to save pixmap.save("example.png");
Thank you for your help.
avalagne
source share