Skip to content

QOpenGLWidget and QWidgets that contain QOpenGLWidgets in tabs #397

@adisuciu

Description

@adisuciu

I'm having an issue when implementing QOpenGLWidgets and QWIdgets that contain QOpenGLWidgets in tabs. It looks like the update does not go all the way through to the children. What I mean by this is that

When QOpenGLWidget is directly added to a tab everything works as expected.
If QWidget which contains a QOpenGLWidget is added to the tab, the QOpenGLWidget requires a separate update() / repaint() event in order to correctly render. I've hacked together QTs examples hellogl2 - https://doc.qt.io/qt-5/qtopengl-hellogl2-example.html and your demo to demonstrate this - video

2022-01-31.12-53-07.mp4

I can provide code for this issue, it is reproducible with both Qt5.15 and Qt6. Do you have any idea what might cause this ?
-Adrian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions