Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43855

Application with no visible windows cannot be closed on windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.8.x, 5.4.0
    • Fix Version/s: 5.14.1, 5.15.0 Alpha
    • Component/s: QPA: Windows
    • Labels:
      None
    • Environment:
      Windows 7
    • Commits:
      92cf38018afe8f598f2c337c0d202f3767b04ead (qt/qtbase/5.14)

      Description

      I have an application that starts minimized to tray. When running on Windows, this is true:

      1. Start the application
      2. Run taskkill /IM <myapp>.exe
      3. System tray icon dies (disappears on next hover)
      4. App is still running in task manager

      If I show the app main window, then hide it, app closes as expected.

      To see the symptoms, use the systray example and comment out window.show()

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              xim Morten Neergaard
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes