<div dir="ltr"><div><div><div><div>This is slightly off-topic, but here it goes: I have my own VTKWidget, similar to QVTKRenderWindowInteractor, which is based on QGLWidget. I wanted to enable sample buffers / samples on it, so that lines et.c. drawn by VTK are anti-aliased.<br><br></div>I thought I could do<br><br>glFormat = self.format()<br>glFormat.setSampleBuffers(True)<br>glFormat.setSamples(8)<br>self.setFormat(glFormat)<br><br></div>but it turns out setFormat is made obsolete in Qt 5, and PyQt does not wrap obsolete methods.<br><br></div>Anyone know of some other way of achieving the same thing?<br><br></div>Elvis<br></div>