Re: Painting into QPixmap
Quote:
Originally Posted by
jessiemmichael
Can I use QPixmap as painter device in worker thread?
Yes :)
The QPixmap class is an off-screen image representation that can be used as a paint device.
Re: Painting into QPixmap
I noticed in one the replies of Wysota's for " real time data display" that having reference to QPixmap in worker thread is not safe.
I guess it is not possible to manipulate image and overlays into Qpixmap object in worker thread.
Re: Painting into QPixmap
Thats true, in that case you can use painting on QImage.
From Qt Docs:
Quote:
Painting in Threads:
QPainter can be used to paint onto QImage, QPrinter, and QPicture paint devices. Painting onto QPixmaps and QWidgets is not supported. On Mac OS X the automatic progress dialog will not be displayed if you are printing from outside the GUI thread.
More Info here.
Re: Painting into QPixmap
Quote:
Originally Posted by
yogeshgokul
Yes :)
The QPixmap class is an off-screen image representation that can be used as a paint device.
No. QPixmap is an on-server image representation that can't be used from worker threads. QImage can.
Re: Painting into QPixmap
Quote:
Originally Posted by
wysota
No. QPixmap is an on-server image representation that can't be used from worker threads. QImage can.
Yeah, I know, just got confused with the meaning of worker thread, I knew this phrase as NON-GUI thread. But now I will also call it same. ;)
I already accepted that and proposed same.
Quote:
Originally Posted by
yogeshgokul
Thats true, in that case you can use painting on QImage.