Hi everyone !
I need to use a VTK function called QVTKOpenGLStereoWidget in Python.
I saw a vtk example where they did this way :
from PyQt4 import QtGui
from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
And then use it like this :
class MainWindow(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QMainWindow.__init__(self, parent)
self.frame = QtGui.QFrame()
self.vtkWidget = QVTKRenderWindowInteractor(self.frame)
However, after looking at some topics, it seems Slicer uses PythonQt and not PyQt.
So in order to access my class, can I just remplace PyQt4 to PythonQt and qt4 with qt5, or do I need to do differently ?
Thanks for the help !
Marine