The docs are your friend!
void QWidget::mouseMoveEvent ( QMouseEvent * event ) [virtual protected]
This event handler, for event event, can be reimplemented in a subclass to receive mouse move events for the widget.
If mouse tracking is switched off, mouse move events only occur if a mouse button is pressed while the mouse is being moved. If mouse tracking is switched on, mouse move events occur even if no mouse button is pressed.
QMouseEvent:os() reports the position of the mouse cursor, relative to this widget. For press and release events, the position is usually the same as the position of the last mouse move event, but it might be different if the user's hand shakes. This is a feature of the underlying window system, not Qt.
http://doc.trolltech.com/4.3/qwidget.html#moveEvent





os
Reply With Quote
Bookmarks