[Qt-interest] Loading QPixmap from file with QtConcurrent causing crash
Giuseppe D'Angelo
dangelog at gmail.com
Mon Jun 13 17:50:18 CEST 2011
On Mon, Jun 13, 2011 at 5:38 PM, Atlant Schmidt
<aschmidt at dekaresearch.com> wrote:
> Thiago:
>
> Didn't you say it exactly the other way around? That
> QPixmaps can *ONLY* be created and used in the GUI
> thread? Perhaps the confusion arises from the use
> of the phrase "main GUI thread"?
If you mean «main "GUI thread"», it does not make sense (there's only
one GUI thread, not a main one and secondary ones). If you mean «main
GUI thread» it's redundant. The main thread (the one that runs the
main() function) is also the GUI thread.*
* In practice, you may find that everything works perfectly if you
choose another thread as the GUI thread, and create your QApplication
and your widgets there. In theory, that's not supported.
--
Giuseppe D'Angelo
More information about the Qt-interest-old
mailing list