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

macOS: Regression: closeEvent called twice (still not fixed)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P1: Critical
    • Resolution: Done
    • 5.4.0, 5.6.3, 5.9.4, 5.11.0 Beta 4
    • 5.11.1
    • QPA
    • macOS
    • e0b5ff4ad583befbecbcbe462998e3ed80899531

    Description

      QWidget::closeEvent is called twice (it doesn't matter if the event is accepted or not).
      See attached minimal application.

      This regression was marked as fixed in QTBUG-39398, but for me it is not.

      I have Qt 5.4 statically build on osx, the patch is there, but i still can reproduce the issue using the test app in QTBUG-39398.

      i have fixed it for myself locally by not calling canQuit and calling QGuiApplication::exit(0) only if all windows did accept their close (and closed).

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              shaforostoff Nick Shaforostoff
              Votes:
              15 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews