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.