Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.3.0
-
None
Description
After having added a widget to a QToolBar, and it is desired to hide this widget. There is no convenient way to get back QAction for the widget.
It would be nice if there was a function in QToolBar such as
QAction * QToolBar::actionForWidget(QWidget * widget)
Currently one have to store a pointer to QAction that is returned by addWidget and call setVisible on it.