how to trap mouse-enter on a groupbox
Solved
General and Desktop
-
Using Qt5.6 and QtCreator, I have a Widgets QMainWindow which has a couple of group boxe's on it. This is all laid out entirely with QtCreator rather than assembled with code.
I'd like to trap when the mouse rolls into the groupbox (but not require the mouse also be pressed). Is there a right way to do this?
-
Hi,
You can install an event filter on the group box you are interested in and catch the QEnterEvent.
Hope it helps
-
You're welcome !
It that fits your needs please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)