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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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)

    Description

      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.

      Attachments

        For Gerrit Dashboard: QTBUG-33716
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes