Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-926

Suggestion for function to get QAction from a previous QWidget added to a QToolBar

    XMLWordPrintable

Details

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stormols Marius Storm-Olsen
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes