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.zip

    I'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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.