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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.4.0, 5.6.3, 5.9.4, 5.11.0 Beta 4
    • Fix Version/s: 5.11.1
    • Component/s: QPA
    • Platform/s:
      macOS
    • Commits:
      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

        1. qtbug43344.zip
          1 kB
          Friedemann Kleint

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews