Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QQuickWidget leaves a zombie process running
Forum Updated to NodeBB v4.3 + New Features

QQuickWidget leaves a zombie process running

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 669 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ondrejandrej
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • O Offline
      O Offline
      ondrejandrej
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved