[Interest] [QQuickView] deadlock on exit
Tim Blechmann
tim at klingt.org
Thu Jan 9 12:00:09 CET 2014
>> not sure, if i am doing something completely wrong here.
>> i'm using a QMainWindow with a QQuickView as central widget. the
>> application does not make use of QApplication::exec, but i'm polling the
>> event loop manually from the application.
>
> You're doing something wrong. Use exec().
fwiw, the winmigrate solution does not use exec() either [1], but calls
qApp->sendPostedEvents() from the host application. i know that
winmigrate is broken in vanilla-qt-5.2, because QMfcApp::pluginInstance
creates a QApplication via
(void)new QApplication(argc, 0);
which causes an assertion failure in QCoreApplication::arguments() [2].
but if using QApplication without exec() is unsupported, maybe this
could be either fixed or removed or declared as unsupported?
thanks,
tim
[1]
https://qt.gitorious.org/qt-solutions/qt-solutions/source/80592b0e7145fb876ea0e84a6e3dadfd5f7481b6:qtwinmigrate/src/qmfcapp.cpp#L106
[2] https://bugreports.qt-project.org/browse/QTBUG-30330
More information about the Interest
mailing list