Quote Originally Posted by Viatorus View Post
But this is not working without a call in the main thread... line 37
Where are you creating an event loop and starting it by calling exec()? My understanding is that qApp->processEventLoop isn't the same as as running the event loop with exec().

I don't believe you can have a true event loop without creating one of QCoreApplication or QApplication. Others know much better than me I am sure, so hopefully they can chime in and point you in the right direction.

Good luck.