On quarta-feira, 8 de janeiro de 2014 17:44:21, Tim Blechmann wrote: > i will see what i can do ... what do i need to do in order to run exec() > from a thread other than the main thread? afaict it wants to be called > from the main thread, so simply creating a std::thread to run > qApp->exec() does not work.
Start your thread using non-Qt means and make sure the *first* QObject created is in that thread. QApplication is a QObject, so you may use that. > and for the case of a plugin, i think it is simply impossible, because > afaict the plugin's gui has to run in the same thread as the host's gui. If the plugin is already using Qt, then the problem is solved. If the plugin is not using Qt, there's no threading issue. Qt requires its GUI to be run from one thread only, but it does not make any requirements on GUIs written without Qt. > in this case, would it be possible to change the faq entry: > http://qt-project.org/faq/answer/how_can_i_create_a_3rd_party_plugin_using_q > t_that_performs_event_handling ? I don't know how to modify that FAQ. In fact, I didn't even know it existed. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest