PDA

View Full Version : Is there an event or emit with QDockWidget?



bitChanger
13th January 2006, 02:13
I'm looking for a way to setWindowOpacity only when a dock widget is undocked and unset when it's docked. Is there an event or emit that gets called when a user docks or undocks a QDockWidget?

Thanks.

Chicken Blood Machine
13th January 2006, 02:33
I'm looking for a way to setWindowOpacity only when a dock widget is undocked and unset when it's docked. Is there an event or emit that gets called when a user docks or undocks a QDockWidget?

Thanks.

QDockWidget emits this signal:



void topLevelChanged ( bool topLevel )

when it is floated/docked. Check the docs on QDockWindow for more details.

bitChanger
13th January 2006, 02:46
That did it!

Thank you so much!