> If QPixmaps are forbidden outside the main GUI thread, why is it not written in the documentation?
http://doc.qt.io/qt-5/thread-basics.html " All widgets and several related classes, for example QPixmap <http://doc.qt.io/qt-5/qpixmap.html>, don't work in secondary threads." Best Jean-Michaël On Fri, May 5, 2017 at 9:05 AM, maitai <[email protected]> wrote: > Hello, > > I have read in many places that QPixmaps should not be used in threads > (Qt5.8/QtConcurrent in my case). > > In fact I have discovered that fact only recently, because I had a random > crash occurring on QPixmap::load(), and in the end that was occurring when > QPixmap::load() was used exactly at the same time from different threads. > > I changed this part to QImage, OK. > > But still, I have hundreds of other QPixmaps used in threads, with no > problem at all (creating, painting, etc). All is working fine for years, > without any warning or so from Qt. Should I change also all these QPixmaps > to QImages (with a conversion cost at the end of the threads)? > > If QPixmaps are forbidden outside the main GUI thread, why is it not > written in the documentation? > > Thanks for any lights on this > Philippe Lelong > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
