[vtkusers] Enable sample buffers on QGLWidget-based VTK widget from Python
Elvis Stansvik
elvis.stansvik at orexplore.com
Thu Jun 23 08:52:02 EDT 2016
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.
I thought I could do
glFormat = self.format()
glFormat.setSampleBuffers(True)
glFormat.setSamples(8)
self.setFormat(glFormat)
but it turns out setFormat is made obsolete in Qt 5, and PyQt does not wrap
obsolete methods.
Anyone know of some other way of achieving the same thing?
Elvis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160623/4437b75f/attachment.html>
More information about the vtkusers
mailing list