<html><head><base href="x-msg://85/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 2, 2010, at 2:46 AM, Giancarlo Amati wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Hello everybody,<br><br>I've addressed this question to both the QT and VTK group.<span class="Apple-converted-space"> </span><br>I'm doing my software and the GUI is with QT while the visualization is with VTK.<br>The VTK widget I used is the QVTKWidget produced when I compiled VTK using QT.<br>so the problem I have is that having an interactor linked to the VTKWidget somehow it intercepts all the events for the mouse<br>and for the keyboard.<br><br>What I would like to do is letting QT managing the same events capture but the vtkWindowInteractor one the interactor has them processed.<br></div></span></blockquote><div><br></div><div>Qt is already capturing the events, but it delgates the processing of those events to vtkRenderWindowInteractor, which in turn works with vtkInteractorObservers.</div><div><br></div><div>If you want to customize event processing, it is recommended that you make a vtkInteractorStyle class to do that, so that any other vtkInteractorObservers you decide to use will also work.</div><div><br></div><div>Otherwise, if you really want to, just overload the normal QWidget functions for capturing events and process them yourself. Its just like any other QWidget.</div><div><br></div><div>Clint</div><div><br></div></div></body></html>