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

QMainWindow with QGLWidget close loses all child widgets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.0
    • GUI: OpenGL
    • None
    • Windows

    Description

      Closing a QMainWindow using the corner X button causes all child widgets to be lost.

      Simple project attached.

      • Show the second QMainWindow with a child QGLWidget.
      • Close the window programmatically using the custom button.
      • Show the window again and see the black QGLWidget.
      • Close the window again using the corner X button.
      • Show the window again and see a white blank window,

      The child widget is lost forever as soon as the native close button is used.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            fun4jimmy James Whitworth
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes