[Development] A new approach for Qt main()
annulen at yandex.ru
Mon Dec 12 15:49:13 CET 2016
12.12.2016, 13:08, "Benjamin TERRIER" <b.terrier at gmail.com>:
> 2016-12-12 10:56 GMT+01:00 Mark De Wit <mark.dewit at iesve.com>:
>> I have an application based on qt-solutions qtwinmigrate sample.
>> Because we're integrating Qt into an existing MFC application, we're not even running QApplication exec. The application uses MFC's entry point for startup and drives the Qt event loop manually as part of the MFC event loop.
> I also did something like that on Linux with a software written with
> another graphical framework.
> We made it work by calling QApplication::processEvents() in the other
> framework event loop.
Same is true for QtWebKit in WebKit2 mode - in background processes we
don't run exec() directly, it is invoked inside WTF::RunLoop.
More information about the Development