PDA

View Full Version : How to determine if dock is open or closed



rbp
9th October 2009, 08:26
hello,

the title pretty much says it all - I want to determine whether a dock is open or closed (so I can set a menu checked/unchecked).

I found that isVisisble() is not a good solution because sometimes I need to query this when the window is not shown.

Hope there is an easy way to do this that I have missed in the API.

Thanks,
Richard

faldzip
9th October 2009, 08:41
Add to your menu action taken from: QDockWidget::toggleViewAction()

rbp
9th October 2009, 09:03
Genius - now I can get rid of my dock sub class!