PDA

View Full Version : Detect if the mouse is clicked outside GroupBox



Veera
6th June 2017, 16:37
Hello!

I am looking for an event if the mouse is clicked outside of the groupBox. I tried FocusOutEvent but was not able to get the event. Any kind of help would be greatly appreciated!

Thank you!

wysota
6th June 2017, 21:41
What do you need that for?

Veera
7th June 2017, 09:37
When I press a toolbox I get a groupbox Popup and I want to close the groupbox when I clicked outside of it.

wysota
7th June 2017, 21:04
In that case make your popup a Qt::ToolTip instead of Qt::Popup.