Quote Originally Posted by pl01 View Post
Hi,

I have anti-aliasing in my QGLWidget, I set it the following way :
Qt Code:
  1. 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:
  1. QGLFormat currentFormat = format();
  2. currentFormat.setSampleBuffers(true);
  3. currentFormat.setSamples(0);
  4. 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