Hi,
I have anti-aliasing in my QGLWidget, I set it the following way :
GLViewport(QWidget *parent) : QGLWidget(QGLFormat(QGL::SampleBuffers), parent) ...
To copy to clipboard, switch view to plain text mode
Later I try to change the format this way:
currentFormat.setSampleBuffers(true);
currentFormat.setSamples(0);
setFormat(currentFormat);
QGLFormat currentFormat = format();
currentFormat.setSampleBuffers(true);
currentFormat.setSamples(0);
setFormat(currentFormat);
To copy to clipboard, switch view to plain text mode
It has 2 effects :
1) it does not work
2) the mouse event are never called after this change !
Does someone have an idea ?
Bookmarks