In my Qt application, I need to track mouse movement. For that, I created an eventfilter
and I installed it correctly as this:
bool iArmMainWindow::eventFilter(QObject *obj, QEvent *event)
{
if (event->type() == QEvent::MouseMove)//not working
{
iarm->printStatus("hi"); //this is for debugging
}
if (event->type() == QEvent::MouseButtonPress){
//Here some staff working correctly
}
//other staff
}
The problem is that the event type MouseMove does not work.
Any idea?