<div dir="ltr">Hi all,<br><br>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.<br>
<br> <b><span style="color: rgb(255, 0, 0);">def resizeEvent(self, ev):</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> w = self.width()</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> h = self.height()</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> #self._RenderWindow.SetSize(w, h)<span style="color: rgb(51, 51, 255);">---------commented this line</span></span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> self._Iren.SetSize(w, h)</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);"> self._Iren.ConfigureEvent()</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> self.update()<span style="color: rgb(51, 102, 255);">-----------------</span><span style="color: rgb(51, 102, 255);">----------------------------</span><span style="color: rgb(51, 102, 255);">added update method</span><br>
<br><br></span></b><span style="color: rgb(0, 0, 0);">Now I have to resize the widget atlest once to work properly. May be I have to look into the initializer.<br><br><br>Thanks<br><br>Jothy </span><b><span style="color: rgb(255, 0, 0);"><br>
</span></b></div>