I have multiple widgets for which I want to implement the following functionality:
If the mouse hovers away from the widget, and then a mouse click occurs anywhere outside the widget , then I have an animation that hides the widget(s).
I am trying to figure out how to have two subsequent events be captured and handled in the simplest, most efficient way. I believe I'd need to use a combination of QEvent::MouseButtonRelease with QEvent::Leave but
I'm just not sure how to synchronize both since each event will be received at its own time in my event filter. So for the second event QEvent::MouseButtonRelease, how can we know when that event is handled that a previous event QEvent::Leave
has just occured to get the desired behaviour?
I am also open to any other methods that are more ideal to solving this problem.
Thanks.
Bookmarks