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

Unsafe deletion of children QOpenGL* objects from QOpenGLWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.0
    • 5.4.1
    • GUI: OpenGL
    • None
    • 7414c2c404cc241b1dbfa2d15aee2917a3b0cfb2

    Description

      When using QOpenGLWindow, if one has a QOpenGL wrapper class as a child object of a QOpenGLWindow subclass, then the child object gets destroyed without a context active.

      That's merely because ~QObject destroys children first, then the private object (holding the context) is destroyed; and nothing makes the context current in the between. This leads to crashes.

      Attachments

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

        Activity

          People

            peppe Giuseppe D'Angelo
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes