QQuickWidget leaves a zombie process running
-
Recently I added a QQuickWidget to a Windows program that used to be purely widget-based. It works fine, but when I close the program when the QQuickWidget is shown, the program remains running in background - it's shown in Task Manager. I can close the program fine from the screen where QQuickWidget is not present. Have you got any idea how to debug this?
I uploaded the source here:
https://dl.dropboxusercontent.com/u/95411657/qt_widget.zipI'm using Qt 5.3.1 on VS 2013.
-
I fixed this by reimplementing closeEvent() of the main window:
@void CMainWindow::closeEvent(QCloseEvent *event)
{
Q_UNUSED(event);
setCentralWidget(new QWidget(this));
}@
I'm setting an empty widget as the central widget, so at the time of quitting QQuickWidget is no longer visible. However, I'd still prefer some real solution.