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

WM_QUIT message doesn't trigger aboutToQuit signal

    XMLWordPrintable

Details

    • Windows

    Description

      If application doesn't have any windows and it receives WM_QUIT message, it just returns immediately from exec(). The WM_QUIT message cannot be intercepted with anything as it is handled before native event filter and just causes the application to return from exec(). There is aboutToQuit signal, which was also suggested in QTBUG-16236 as alternative way, but that is not triggered if the application doesn't have any windows.

      Steps to reproduce

      • Start windowless app
      • End it via task manager
      • Note aboutToQuit is not emitted

      References:

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes