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

WM_QUIT message doesn't trigger aboutToQuit signal

    XMLWordPrintable

    Details

    • Platform/s:
      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

        1. qtbug83963_better-example.cpp
          0.6 kB
          Julius Bullinger
        2. qtbug83963.zip
          0.7 kB
          Joni Poikelin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kleint Friedemann Kleint
            Reporter:
            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