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

Application freeze after repeating child window opening and closing

    XMLWordPrintable

Details

    • Windows

    Description

      In the sample code, a child window(QMainWindow) is opened by clicking the toolbar button in the main window (also QMainWindow), if repeating the child window opening and closing for several times. The application will freeze. Inside both the child and main window, QQuickWidget is used with Qt3D Qml running in it. 
       
      The symptom has been observed in 5.12.  It is NOT happening in 5.15.  It is not perfect in 5.14 either, but the symptom is lighter (the application will not freeze, but you need to move the mouse a little bit for the rendered image in QQuickWidget to display ). 
       
      In the sample, the line "d->setAttribute(Qt::WA_DeleteOnClose);" has been commented out. Uncomment this line can make the child window and widgets in it get deleted when the child window is closed. Under this condition the symptom still happens,  but it happens after more times of repeating the opening and closing of the child window. 

      The issue looks to be related to 3D rendering. When OpenGL is used instead of OpenGLES(Angle), the issue does not happen. 

      Attachments

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

        Activity

          People

            mkrus Mike Krus
            yifei Yi Fei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes