[PyQt] How can I set Qt's main thread to be different than Python's main thread?

Ilya Kulakov kulakov.ilya at gmail.com
Sun Mar 8 17:41:10 GMT 2015


Hi Florian,

Looks like you’re right. I wonder if I can run main python thread in non-main process thread.

> On 7 марта 2015 г., at 20:08, Florian Bruhin <me at the-compiler.org> wrote:
> 
> Hi,
> 
> * Ilya Kulakov <kulakov.ilya at gmail.com> [2015-03-07 19:59:40 +0600]:
>> Is it possible (and supported) to change Qt's main thread to be other than Python's main thread?
>> 
>> What are the consequences? Are there PyQt methods that MUST be used from main Python / main application thread?
> 
> I don't think that's possible. For Qt in general, everything related
> to the GUI needs to be done in the main thread:
> 
> http://doc.qt.io/qt-5/thread-basics.html#gui-thread-and-worker-thread
> 
> Florian
> 
> -- 
> http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
>   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
>         I love long mails! | http://email.is-not-s.ms/
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list