QApplication In Non-Main Thread

前端 未结 6 605
旧时难觅i
旧时难觅i 2020-12-05 08:18

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

6条回答
  •  时光取名叫无心
    2020-12-05 09:13

    Patch Qt, I guess and remove the main thread check, and test if that works for you. According to http://bugreports.qt-project.org/browse/QTBUG-7393 that won't work on OS X/Cocoa though, as Cocoa assumes the first thread spawned to be the main/UI thread.

提交回复
热议问题