[vtkusers] vtkEventQtSlotConnect skips vtkCommand::LeftButtonReleaseEvent?

Clinton Stimpson clinton at elemtech.com
Fri May 14 10:34:56 EDT 2010


On 05/14/2010 08:05 AM, Constantine Zakkaroff wrote:
> Hello ALL.
>
> Strange issue: vtkEventQtSlotConnect does not trigger 
> vtkCommand::LeftButtonReleaseEvent connection.
>
> Here's how connections are created:
>
> m_QtEventConections = vtkEventQtSlotConnect::New();
>
> m_QtEventConections->Connect(qvtkWidget->GetRenderWindow()->GetInteractor(), 
>
>         vtkCommand::LeftButtonPressEvent,
>         this,
>         SLOT(processEvent(vtkObject*, unsigned long)));
>
> m_QtEventConections->Connect(qvtkWidget->GetRenderWindow()->GetInteractor(), 
>
>         vtkCommand::LeftButtonReleaseEvent,
>         this,
>         SLOT(processEvent(vtkObject*, unsigned long)));
>
> Both connections appear in the list when vtkEventQtSlotConnect is 
> printed to std::cout, but process event only fires in the case of 
> vtkCommand::LeftButtonPressEvent, not 
> vtkCommand::LeftButtonReleaseEvent. Am I doing something wrong here?
>
Is it possible your processEvents(...) creates a dialog or another 
window under the mouse, so the mouse release would go to that window 
instead?

Clint



More information about the vtkusers mailing list