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

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

    XMLWordPrintable

Details

    • 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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: