[vtkusers] VTK, Python, and Qt4

Prabhu Ramachandran prabhu at aero.iitb.ac.in
Fri May 2 00:42:53 EDT 2008


Doug Hackworth <doug.hackworth at vanderbilt.edu> wrote:
> "RuntimeError: the PyQt4.QtCore and qt modules both wrap the QObject class"
> 
> Here is what I'm importing:
> 
> import sys
> import vtk
> import qt
> from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor

I am no Qt expert but IIRC qt4 is not to be used with Qt (which is why 
you have a separate qt4 package).  You have to use qt4 in its entirety 
instead of the older qt3.

cheers,
prabhu



More information about the vtkusers mailing list