HoverEnterEvent being called when it shoudn't
-
Here I have a situation Where I understand that HoverEnterEvent shoudn't be called.
I have a button class with an tooltip attribute, this tooltip always show up through the HoverEnterEvent and it is hidden through HoverLeaveEvent. It works perfectly. But I also implemented a functionality for the button that just opens a QMessageBox.
I realize that when I click the button, HoverLeaveEvent is called, I don't know why, but it's expected that behavior. But When I resolve the MessageBox the EnterHoverEvent of this button is called, what doesn't make sense for me. Since I'm not hovering it. What is happening?
-
Hi,
Where do you show your QMessageBox with respect to your button ?
-
@leonardoMB
...and/or additionally, possibly, where is your mouse with respect to the original button after you have dismissed the MessageBox? -
I meant "physically" on your UI.
-
Can you provide a minimal compilable example ?
Also which version of Qt ?
On which OS ?