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

Florian Bruhin me at the-compiler.org
Sat Mar 7 14:08:40 GMT 2015


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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150307/4e9237c2/attachment.sig>


More information about the PyQt mailing list