[ACCEPTED]-Show/hide QDockWidget?-visibility
Accepted answer
Instead of creating a new action, simply 6 get the action from the QDockWidget itself 5 and use that. It'll take care of state for 4 you:
http://qt-project.org/doc/qt-4.8/qdockwidget.html#toggleViewAction
QAction * QDockWidget::toggleViewAction () const
"Returns a checkable action that 3 can be used to show or close this dock widget.
The 2 action's text is set to the dock widget's 1 window title. "
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.