Save qlabel picture, modify and reload to qlabel
-
wrote on 31 Oct 2018, 08:34 last edited by
Hi!
I have a qlabel, and I make a qpicture with the qpainter and setting this picture to qlabel, is working fine.
I would like to modify the picture, I would like to save the actual, because there are several versions, but I do not know how.Thanks in advance.
-
Hi!
I have a qlabel, and I make a qpicture with the qpainter and setting this picture to qlabel, is working fine.
I would like to modify the picture, I would like to save the actual, because there are several versions, but I do not know how.Thanks in advance.
@Kutyus What about http://doc.qt.io/qt-5/qpicture.html#save ?
-
@Kutyus What about http://doc.qt.io/qt-5/qpicture.html#save ?
-
QPicture pic1; QPicture pic2 = pic1;
-
wrote on 31 Oct 2018, 10:46 last edited by
Ok, I solve the problem, change the QPicture to QPixmap, and it is copyable with the copy() method :)
Thanks
2/5