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

close.accepted = false ignored when QCoreApplication::quit() is called

    XMLWordPrintable

    Details

      Description

      On OSX "App Menu-Quit" is hooked into QCoreApplication::quit() as is the quit command in the dock menu

      When either of these is called on a qtquick application the onClosing handler is run for the window and even if close.accepted = false it is ignored and the application will quit

      (A qt widgets application with a QMainWindow overriding event() and ignore() the even will not quit under the same situation)

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              xzcvczx Simon Wells
              Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes