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

Mac: QWidgets embedded in QGraphicsProxyWidget are sent closeEvents when app is closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.3.0 Beta1
    • 5.1.1, 5.2.0 Alpha
    • Widgets: GraphicsView
    • None
    • OSX 10.8
    • macOS
    • bb7bf6ca17061d835cf7980179ae0a607830048d (stable, 28.1.2014, 5.3.0)

      This is a major regression in Qt 5.

      Our application embeds multiple QWidgets into QGraphicsProxyWidgets within a graphics scene.

      When the application quits (press CMQ-Q or close window) and the save-confirmation dialog appears, the QWidgets in the scene all vanish! This happens regardless of the user's choice in the confirmation dialog (e.g. the click cancel).

      As of Qt 5, the embedded widgets are sent closeEvents and as the default behavior is to accept the event, the widgets are closed.

      This does not happen in Qt 4. Only top-level widgets are sent the closeEvent as you would expect.

        1. qtbug33716.zip
          1 kB
          Friedemann Kleint
        2. Screen Shot 2013-10-16 at 14.12.22.png
          72 kB
          Daniel
        For Gerrit Dashboard: QTBUG-33716
        # Subject Branch Project Status CR V

            sorvig Morten Sørvig
            danny77uk Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes