Mouse tracking working intermittently after full screen
-
My application has some widgets that use
setMouseTracking(true)so that they can receive move events and react to mouse hover.This works fine in practice. However, my application has a feature where you can open a new detached widget and
showFullScreen(). After closing the full screen widget, focus returns to my main window but mouse tracking is no longer working.I can interact with widgets as if the window has normal focus. I implemented a quick check and confirmed that widgets that are supposed to have tracking still
hasMouseTracking() == trueAfter a lot of clicking around, the widgets in question eventual return to active mouse tracking.
Is there some aspect of focus that Mac handles differently ? - On Linux I don't have this problem at all.
-
Hi,
Fullscreen in OS X and fullscreen in other OSes are different beasts so you may very well have uncovered something.
Can you reproduce that with a minimal compilable example ?
-
Got any mouse event related function reimplement in one of your widgets ?
-
Did you call the base class implementation in your re-implented version ?
-
Then one thing you can do is disable all your widgets and enable them one by one until you have the bug starting again.