Hmmm.... that is weird as I can get mouse moves. Please see code below.<br><br>vtkEventQtSlotConnect *  connections = vtkEventQtSlotConnect::New();<br><br>..  connections->Connect(interactorROI,<br>                       vtkCommand::MouseMoveEvent,<br>
                       this,<br>                       SLOT(handleMouseMove()));<br><br>..<br><br>// The slot<br>void myScene::handleMouseMove()<br>{<br>  // get event position<br>  int event_pos[2];<br>  interactorROI->GetEventPosition(event_pos);<br>
  qDebug("Move: x=%d : y=%d\n", event_pos[0], event_pos[1]);<br>}<br><br><br><br>Unfortunately the mouse release of any button is still dysfunctional, which is a travesty as this<br>is otherwise a very useful class. I wish someone would fix this.<br>
<br>Imran<br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 8:50 AM, Jafari, Kourosh <span dir="ltr"><<a href="mailto:kjafari@rad.hfh.edu">kjafari@rad.hfh.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear Imran,<br>
<br>
My name is Kourosh and I am a VTK user. I saw the following posting from you regarding vtkEventQtSlotConnect not being able to capture mouse release. I actually faced the same problem. I even cannot get the position of mouse when I move the mouse without clicking. Did you find any solution for this problem?<br>
<br>
I highly appreciate your kind help.<br>
<br>
Best regards,<br>
<br>
Kourosh Jafari-Khouzani, PhD<br>
Dept. of Diagnostic Radiology<br>
Henry Ford Hospital<br>
1 Ford Place, 2F (box 82)<br>
Detroit, MI 48202<br>
<br>
Tel: 313-874-4378, Fax: 313-874-4494<br>
<a href="mailto:kjafari@rad.hfh.edu">kjafari@rad.hfh.edu</a><mailto:<a href="mailto:kjafari@rad.hfh.edu">kjafari@rad.hfh.edu</a>><br>
<a href="http://www.cs.wayne.edu/%7Ekjafari" target="_blank">http://www.cs.wayne.edu/~kjafari</a><br>
<br>
<br>
P.S.<br>
Your posting:<br>
<br>
I have a windows application where I instrumented connecting the mouse events in QVTkWidget to slots and noticed that NONE of the mouse RELEASE events<br>
can be captured into a slot using vtkEventQtSlotConnect.<br>
 connections = vtkEventQtSlotConnect::New();<br>
 connections->Connect(interactorROI,<br>
                       vtkCommand::EnterEvent,<br>
                       this,<br>
                       SLOT(handleMouseEnter()));<br>
 connections->Connect(interactorROI,<br>
                       vtkCommand::LeaveEvent,<br>
                       this,<br>
                       SLOT(handleMouseLeave()));<br>
 connections->Connect(interactorROI,<br>
                       vtkCommand::LeftButtonPressEvent,<br>
                       this,<br>
                       SLOT(handleMouseLeftButtonPress()));<br>
 connections->Connect(interactorROI,<br>
                       vtkCommand::LeftButtonReleaseEvent,<br>
                       this,<br>
                       SLOT(handleMouseLeftButtonRelease()));<br>
 connections->Connect(interactorROI,<br>
                       vtkCommand::MouseWheelForwardEvent,<br>
                       this,<br>
                       SLOT(handleMouseWheelForward()));<br>
 connections->Connect(interactorROI,<br>
                       vtkCommand::MouseWheelBackwardEvent,<br>
                       this,<br>
                       SLOT(handleMouseWheelBackward()));<br>
 connections->Connect(interactorROI,<br>
                       vtkCommand::RightButtonPressEvent,<br>
                       this,<br>
                       SLOT(handleMouseRightButtonPress()));<br>
 connections->Connect(interactorROI,<br>
                       vtkCommand::RightButtonReleaseEvent,<br>
                       this,<br>
                       SLOT(handleMouseRightButtonRelease()));<br>
All other mouse events work.<br>
 I noticed that a couple of other folks<br>
Constantine Zakkaroff  adn Tamaron     : vtkEventQtSlotConnect skips vtkCommand::LeftButtonReleaseEvent?<br>
Have also experienced this. This is a very basic functionality for me to use the QVTKWidget. I hope someone can suggest<br>
a solution or a workaround.<br>
<font color="#888888">--<br>
Imran<br>
</font></blockquote></div><br>