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

QOpenGLWidget is not repainted when repaint is called on parent widget.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.0.3
    • GUI: OpenGL
    • None
    • Windows

    Description

      I have a custom widget that has a QOpenGLWidget as a child. At some point, I want to update the widget, so I call repaint() on it, expecting that all child widgets, including the QOpenGLWidget get updated as well. But that does not appear to be the case. The attached code reproduces the issue. When the user pushes the button, a timer starts, which calls the onTimer slot. This calls repaint on the parent widget. The QOpenGLWidget child widget, however, does not get updated. Is this by design or is this a bug? 

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            belgiansteve78 Steve Maas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes