[Qt-embedded-interest] After main thread execution, QPixmap creation in another thread crashes the application
Tom Cooksey
thomas.cooksey at nokia.com
Fri Oct 30 10:04:32 CET 2009
On Friday 30 October 2009 05:41:20 ext trinathpujari wrote:
> Hi All,.
>
> I am facing a serious problem in my aplication regarding the
> creation QPixmap.
> When i am creating QPixmap in main or before main thread
> execution, it is working fine.
> But if i create the QPixmap after a.exec or if i create the
> QPixmap in any of the user threads my application is crashing.
> So please if anybody have any idea why it is crashing please let
> me know... and it's very urgent...
> Thanks in Advance...
QPixmaps are not thread safe. You may only use them in the main thread (the
one which called QApplication::exec). If you want to render in separate
threads you must use QImage instead.
More information about the Qt-embedded-interest
mailing list