Originally Posted by pl01 Hi, I have anti-aliasing in my QGLWidget, I set it the following way : Qt Code: Switch view GLViewport(QWidget *parent) : QGLWidget(QGLFormat(QGL::SampleBuffers), parent) ... 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: Qt Code: Switch view QGLFormat currentFormat = format(); 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 ? Hi, When you said "it does not work", you mean multisampling is not working or something else? The mouse event part is also bit weird. I don't think they are related each other, are they? Try to use setMouseTracking(true) within the GLViewport. Regards, Dong Back Kim
GLViewport(QWidget *parent) : QGLWidget(QGLFormat(QGL::SampleBuffers), parent) ...
QGLFormat currentFormat = format(); currentFormat.setSampleBuffers(true); currentFormat.setSamples(0); setFormat(currentFormat);
View Tag Cloud
Forum Rules
Bookmarks