[vtkusers] QVTKRenderWindoeInteractor Bug?

Jothybasu K Selvaraj jothybasu at gmail.com
Wed Apr 14 10:53:09 EDT 2010


Hi all,

I have a MDI area in a Qt application. It has 4 subwindows and assigned a
renderer to each one of them.The problem I encountered is when I use any of
the vtkWidgets(ImageTracerWidget) the mouse position is too far from the
active pixel when I maximize the subwindow.After a while, I dug the source
file of QVTKRenderWindowInteractor and modified the code as shown below. Now
it works fine with one minor problem.

    *def resizeEvent(self, ev):
        w = self.width()
        h = self.height()
        #self._RenderWindow.SetSize(w, h)---------commented this line
        self._Iren.SetSize(w, h)
        self._Iren.ConfigureEvent()
        self.update()---------------------------------------------added
update method


*Now I have to resize the widget atlest once to work properly. May be I have
to look into the initializer.


Thanks

Jothy *
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100414/2acf7789/attachment.htm>


More information about the vtkusers mailing list