Hi All,

I would like to change the mouse cursor when I move the mouse pointer inside my QTableView over a row.

I've tried this:
Qt Code:
  1. void QTableView::mouseMoveEvent( QMouseEvent *pEvent )
  2. {
  3. int iRow = this->rowAt( pEvent->y() );
  4. if( iRow == -1 )
  5. {
  6. this->setCursor( QCursor( Qt::ArrowCursor ));
  7. }
  8. else
  9. {
  10. this->setCursor( QCursor( Qt::PointingHandCursor ));
  11. }
  12. }
To copy to clipboard, switch view to plain text mode 

But this unfortunately this does not work. The mouse cursor is not changing. What do I wrong? Any ideas?

Many thanks and best regards