Following your good advice, I set up an event filter that works. I was just wondering whether there is a better way than what I implemented.

For each Widget that I want to react to QEvent::Enter or QEvent::Leave I added :
Qt Code:
  1. anyWidget->installEventFilter( this );
To copy to clipboard, switch view to plain text mode 

Then as filter :
Qt Code:
  1. bool ApplicationWindow::eventFilter(QObject *target, QEvent *event)
  2. {
  3. if (event->type() == QEvent::Enter)
  4. QApplication::setOverrideCursor( QCursor(Qt::PointingHandCursor) );
  5. if (event->type() == QEvent::Leave )
  6. QApplication::restoreOverrideCursor();
  7.  
  8. return QMainWindow::eventFilter(target, event);
  9. }
To copy to clipboard, switch view to plain text mode 


Is this the right way to do it ?