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

Allow WM_QUIT to be modified or stopped e.g through an event filter

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.7.1
    • Core: Event loop
    • None
    • Windows

    Description

      If the win32 eventdispatcher sees a WM_QUIT message in function: QEventDispatcherWin32::processEvents(), it directly triggers QCoreApplication::instance()->quit().QCoreApplication::quit() calls directly exit(0) which stops all further event processing. It would be helpful if the default action for WM_QUIT could be modified or stopped through the winEventFilter().

      The reason for requesting this possibility is to be able to run some complex cleanup steps before the application quits. winEventFilter() is supposed to get all the events before Qt handles it (as per the docs) and it should be able to handle this event there, but with the current implementation it is not.

      Attachments

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

        Activity

          People

            earthdomain Earth Domain (Inactive)
            naevdal Sigrid Fjell Nævdal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes