Yes, I see this as well. You can refer to my issue QPainter::begin: Paint device returned engine == 0, type: 1. I added gif’s showing this exact problem.
This is independent of
QVTKOpenGLWidget
. In my example, I inherit fromQWidget
. I’m able to recreate the problem without usingQVTKOpenGLWidget
at all.Since
Qt4
, all QWidget’s are double-buffered, andWA_PaintOnScreen
was added for backwards-compatibility to allow setting a widget to use single buffering.I believe the issue stems from how
VTK
interprets howQt
version>=4
renders. I think it is still interpreting thatQt
is single-buffered by default.
My example was using the python vtkmodules/qt/QVTKRenderWindowInteractor
and that interactor uses a native vtkWin32OpenGLRenderWindow
on Windows by default. I also have an NVIDIA GPU, so my previous comment was wrong. My example is a different issue.