View Full Version : mouse moving don't produce mouse events

13th September 2006, 03:48
Below is the qt assistant description:

Mouse move events will occur only when a mouse button is pressed down, unless mouse tracking has been enabled with QWidget::setMouseTracking().

Howerer, I can't receive any mouse event if I don't press down a mouse button.And I have
called QWidget::setMouseTracking(TRUE). What's wrong here?

Thanks you!

13th September 2006, 07:13
Is it anyhow possible that there would be a typo in the function declaration?
Make sure it matches this signature:

virtual void mouseMoveEvent(QMouseEvent* e);

Also, make sure that the base class marks it as virtual if it's overriding it too..