PDA

View Full Version : Problem with QDocWidged hiding and showing with a controll button.



kiran p
9th August 2011, 11:19
Hi All...

Im using a QDockWidget in Main Window, my requirement is to hide the dockwidget, im trying set the flags for QDockWidget, but there is no specific flag for hiding .

Is there any specific way where in i can provide a Down arrow button.
Widget has to hide on clicking on it and Button must change its arrow direction upwards.
Clicking on Up arrow it should come back to maximized state.

Thanks in advance,

jacks916
9th August 2011, 21:38
dockwidget->show()
dockwidget->hide()

I would probably look at this function: void QDockWidget::setTitleBarWidget ( QWidget * widget )