[vtkusers] vtk, QVTKRenderWindowInteractor and vtkImageViewer2
Lic. José M. Rodriguez Bacallao
jmrbcu at gmail.com
Sat Nov 14 12:47:06 EST 2009
hi folks, I am using python and PyQt4 for displaying dicom images and
using QVTKRenderWindowInteractor and vtkImageViewer2 (or
vtkImageColorViewer from gdcm) to display it. The way I display the
images is with a tab widget and as a tab page I add a QMainWindow with
central widget set to QVTKRenderWindowInteractor with an
vtkImageViewer2. Problem is when I try to close a tab page
(QMainWindow) and then close the application, vtk is showing this
messages:
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Extension: 136 (Uknown extension)
Minor opcode: 9 (Unknown request)
Resource id: 0x2c00493
this message does not appear when I close the application window
directly from the window close button. Is there a proper way to
destroy an vtk object?
PS: Which is the better way to display dicom images with vtk?
--
Lic. José M. Rodriguez Bacallao
Centro de Biofisica Medica
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic
por profesionales
-----------------------------------------------------------------
More information about the vtkusers
mailing list