<div dir="ltr"><div>AFAIK there is no difference.<br><br>Are you sure connection did not fail <br>and your slot is declared similar to <br>onCmdMouseMotion(vtkObject*)?<br><br></div>( has correct number of parameters?)<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 19, 2013 at 9:17 AM, curator <span dir="ltr">&lt;<a href="mailto:curator@gmx.de" target="_blank">curator@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all (for the last time today),<br>
<br>
recently, I caught my events by MousePress events as follows:<br>
vtkEventQtSlotConnect *t_connections = vtkEventQtSlotConnect::New();<br>
    t_connections-&gt;Connect( m_VTKWidget-&gt;GetRenderWindow()<u></u>-&gt;GetInteractor(),<br>
                              vtkCommand::MouseMoveEvent,<br>
                              this,<br>
                              SLOT(onCmdMouseMotion(<u></u>vtkObject*)));<br>
    t_connections-&gt;Connect( m_VTKWidget-&gt;GetRenderWindow()<u></u>-&gt;GetInteractor(),<br>
                              vtkCommand::<u></u>LeftButtonPressEvent,<br>
                              this,<br>
SLOT(onCmdMouseLeftPress(<u></u>vtkObject*)));<br>
<br>
Both work perfectly, but unfortunatly I want to do sth, only then I &quot;click&quot; or &quot;doubleclick&quot; on an item rather than rotate the scene.<br>
<br>
Unfortunaly, I didnt found something like vtkCommand::DoubleClickEvent, so I decided to add a new trigger:<br>
<br>
t_connections-&gt;Connect( m_VTKWidget-&gt;GetRenderWindow()<u></u>-&gt;GetInteractor(),<br>
                              vtkCommand::<u></u>LeftButtonReleaseEvent,<br>
                              this,<br>
SLOT(onCmdMouseLeftRelease(<u></u>vtkObject*)));<br>
<br>
and simply check if the mouse has not moved (except some eps) since button press. The problem is, that this last slot does not trigger, because onCmdMouseLeftRelease() is never called. What is the difference between the first two and the last call?<br>

<br>
regards,<br>
curator<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</blockquote></div><br></div>