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

Detaching a QGLWidget doesn't create a valid OpenGL window on OS X

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.3.0 Beta1
    • 5.0.1, 5.1.0
    • GUI: OpenGL
    • None
    • OS X 10.8 64 bit
    • macOS

      Trying to detach a widget derived from QGLWidget by setting it's parent to NULL (setParent(NULL)) doesn't create a valid OpenGL window on OS X. After a GLWidget is created detaching a normal QWidget doesn't work anymore either. With Qt 4.8 all of this works just fine.

      The example project (DetachTest.zip) has a GLWidget and a normal widget with buttons to create the GLWidget and detach both widgets. Before creating the GLWidget detaching the normal widget works (blue widget shown in detached window). After the GLWidget is created trying to detach either of the widgets results in a white external window. Re-attaching the widgets allows them to be drawn correctly again.

      The example runs fine in Qt 4.8, but shows the described problem in both Qt 5.0.1 and the current Qt 5 dev branch.

        1. DetachTest.zip
          4 kB
        2. DetachTest.png
          DetachTest.png
          104 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sorvig Morten Sørvig
            jahka Janne Karhu
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes