[vtk-developers] QVTKWidget in python

Clinton Stimpson clinton at elemtech.com
Thu Sep 1 12:15:09 EDT 2011


On Thursday, September 01, 2011 10:02:22 am Panagiotis Mavrogiorgos wrote:
> > > Can you point me to the definition of QVTKWidget? I can't find it under
> > 
> > the
> > 
> > > vtk namespace
> > > 
> > > >>> from vtk import *
> > > >>> QVTKWidget()
> > > 
> > > Traceback (most recent call last):
> > >   File "<stdin>", line 1, in <module>
> > > 
> > > NameError: name 'QVTKWidget' is not defined
> > 
> > It is a C++ class in VTK/GUISupport/Qt.
> 
> On /VTK/GUISupport/Qt/Testing/Python there are some examples that are
> supposed to test QVTKWidget but don't work on vtk 5.6
> 
> Aren't those classes wrapped for Python anymore?

Python wrappers for the C++/Qt classes in VTK are new for VTK 5.8.
There's also some new Qt related classes for QGraphicsView support.

warning: the python wrappers are currently having issues on master, so you can 
use the release branch if you want.

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com



More information about the vtk-developers mailing list