Important: Please read the Qt Code of Conduct -

Multisampling in QOpenGLWidgets nested in QMdiSubwindows

  • I have several myGLWidget objects (QOpenGLWidget derived class) in QMdiArea and I draw their contents with multisampling. myGLWidget's ctor looks like this:

    myGLWidget::myGLWidget(QWidget * parent) : QOpenGLWidget(parent)
        QSurfaceFormat format;

    When I have 2 subwindows in normal (not maximized) state, I can see that multisampling works. If I maximize one of them (one that was created last) antialiasing stops working in maximized widget. How do I fix it?

Log in to reply