PDA

View Full Version : getting notfication when widget close



dave
9th November 2006, 20:19
Hi

Is there a way - without subclassing a widget - to know when it gets a close event, or just when it is hidden? In my case I have a QDockWidget that I need to know when it is hidden.

Thanks
Dave

edit: and I can't just check isHidden becuase I need to know no matter where I'm in the code.

jacek
9th November 2006, 20:33
You can install an event filter. See QObject::installEventFilter().