sajis997
24th January 2012, 05:30
Hello forum
let me re-iterate what is written in the Qt manual about mouse tracking:
"This property holds whether mouse tracking is enabled for the widget.
If mouse tracking is disabled (the default), the widget only receives mouse move events when at least one mouse button is pressed while the mouse is being moved.
If mouse tracking is enabled, the widget receives mouse move events even if no buttons are pressed."
I have sub-classed QGraphicsView and did not enable mouse tracking inside the subclass construcor.
But the mouse move is tracked inside the mouse move event even when no mouse buttons are pressed.
Any explanation ? I am using Qt 4.4.3
Regards
Sajjad
let me re-iterate what is written in the Qt manual about mouse tracking:
"This property holds whether mouse tracking is enabled for the widget.
If mouse tracking is disabled (the default), the widget only receives mouse move events when at least one mouse button is pressed while the mouse is being moved.
If mouse tracking is enabled, the widget receives mouse move events even if no buttons are pressed."
I have sub-classed QGraphicsView and did not enable mouse tracking inside the subclass construcor.
But the mouse move is tracked inside the mouse move event even when no mouse buttons are pressed.
Any explanation ? I am using Qt 4.4.3
Regards
Sajjad