I'm displaying a popup window when the mouse cursor is over a certain widget and I'd like to hide this popup when the mouse leaves the widget.
To do it, I reimplemented leaveEvent()
. This seems to work in all cases except when switching to another application by Alt+Tab
. I figured out that I probably need to catch another event, but somehow I can't find the proper one. Can you suggest one?