QApplication In Non-Main Thread

Posted by Boatzart on Stack Overflow See other posts from Stack Overflow or by Boatzart
Published on 2010-05-09T19:16:25Z Indexed on 2010/05/09 19:28 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

I need to exec() a QApplication in a thread that is not main (my GUIs must be plugins that can be dynamically loaded and unloaded at runtime, so I have no access to the main thread). Does anyone know of a (relatively) painless way to hack around Qt's restriction against starting QApplication outside of main?

I'm developing in Linux with Qt4 in C++ using gcc4.3.4.

© Stack Overflow or respective owner

Related posts about c++

Related posts about qt