I have a couple of group boxes in my application that are placed on same parent widget and each of them is provided with a child instance of QwtPlot. User can operate with plots via mouse (zooming, panning...).
I want to keep a track in which group box is user currently working (which is the focus group box). However events are handled in standard way, so if user works with plot, mouse events are consumed by this plot. I want to know that user is working with a specific groupbox no matter what operations he performs with its nested widgets.
Any suggestions?
Ok I have found a solution. QGroupBox has to be reimplemented, for example:
Then I can connect customReleased() of all my group boxes to one slot which will handle sender() object and keep track about active group box.