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

QOpenGLWidget doesn't work when placed in a QDockWidget with QMainWindow::GroupedDragging enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.8.0, 5.9.0
    • GUI: OpenGL
    • None
    • Windows 10

      Qt 5.8

      NVIDIA GeForce GTX 980 Ti

      NVIDIA driver 21.21.13.7653 from 12/29/2016

    Description

      I am unable to get window composition to function correctly when using a QOpenGLWidget in conjunction with QDockWIdgets, when QMainWindow::GroupedDragging is enabled, and winId() has been called on one of the dock widgets.  The QOpenGLWidget paintGL() method is working, the framebuffer gets painted correctly, but the composeAndFlush() call in QWidgetBackingStore fails.  I get the error:
      composeAndFlush: makeCurrent() failed

       

      To reproduce:

      1. Build and run the attached application
      2. Drag the dock widget in the main window on top of the floating one
      3. The dock widgets become grouped
      4. Switch Tabs to Dock Widget 2
      5. Resize the floating window.  The window is not repainted.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            chrisburel Chris Burel
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes