Re: QPixmap in thread
Well I did manage to convert it in another thread and that works fine, excluding warning all over the place for the QPixmap in non GUI thread.
QPixmap's are not thread safe so You can't use it in another thread.
But my question was related not to the accessing issue but to the thread affinity for the QPixmap's. So if I create object in thread A then that object lives in thread A. For the i.e. QImage its fine, but I don't know if thread affinity will conflict with QPixmaps.
AFAIK the reason is that only GUI thread has QPainterEngine active and that one is used to paint on QPixmaps. Depending on the server, i.e. X11, OGL etc. server strange thing can happens, especially on X11.
PS. Tilling won't work, because total time will be, in average, the same. Because the reason why I need QPixmap is that I will display them, and there in no big time difference between converting 1 time 5kx5k QImage and 5 times 1kx1k QImage. Of course from speed conversion point of view, not Ui freezing, with using 5x 1kx1k conversion help.
In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
The advance of computerization however, has not yet wiped out nations and ethnic groups.
Bookmarks