Did you read the docs for this method? I really doubt you want to use it.
Did you read the docs for this method? I really doubt you want to use it.
"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 don't want to track the mouse when a button is pressed. I want track it when ever I mouse over on ? So I guess I need it enabled. No ?
Explain if no please ?
Have you considered the fact that QTabWidget already handles mouse events and expects to receive mouse move events only when mouse button is pressed and that you are breaking this functionality with mouse tracking? Also, do your mouse event handlers reimplementations assure that the original functionality is retained? And do you really think I asked why did you enable mouse tracking to hear "because I want to track the mouse"?
I am apologize for "because I want to track the mouse" if that hurt you feelings. But if QTabWidget handles mouse events and expects to receive mouse move only when mouse button is pressed so how to fix that if not putting mouse tracking ? I don't want to press the button.
Also that what I know of any QWidget defaults to receive mouse move event when button is pressed, and doc says that to enable it you gotta enable mouse move tracking.
So if you saying it actually breaking it so I am very confused. Any way removing it does not fix it. Still need to press the btn to receive the mouse event.
Any way did not put it into QtabWidget only for a widget added to the TAB and to mainwindow. Adding it to QTabWidget does not help as well.
Thanks for help
Last edited by migel; 10th October 2011 at 09:58.
Don't worry about my feelings. You are just wasting your time giving such answers. And risk me losing my patience and stopping trying to help you.
What do you want? Or let me make myself more explicit... what is the ultimate goal you are trying to obtain by handling mouse events in this particular situation?But if QTabWidget handles mouse events and expects to receive mouse move only when mouse button is pressed so how to fix that if not putting mouse tracking ? I don't want to press the button.
Bookmarks