[Qt-interest] QApplication on separate thread...

Andre Somers andre at familiesomers.nl
Tue Jun 22 20:55:10 CEST 2010


Op 22-6-2010 19:35, Eric Clark schreef:
>
> Hello All,
>
> I have a non-Qt application that loads a Qt application. The non-qt 
> application would like to instantiate and start the Qt application on 
> a separate thread than the main thread in which it resides. I am 
> getting some errors associated with sending signals to objects on 
> different threads. I was wondering if anyone could tell me if it is 
> possible to have a QApplication that resides on a thread different 
> than that of the main application? Or is it a requirement that the 
> QApplication reside on the application's main thread?
>
> Thank You in Advance!
>
> Eric
>
The main application needs to be in the main thread, as do all paint 
operations.
But... I don't get your requirement at all. If you have two applications 
anyway, they run in separate processes already. A thread represents 
parallel code paths *inside* a process. How do you envision running an 
application in another thread?

André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100622/8bab8f8c/attachment.html 


More information about the Qt-interest-old mailing list