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

QToolBar is missing in Designer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 6.6.1
    • Tools: Designer
    • None

    Description

      Even though it is uncommon usage, QToolBar can appear in any widget other than QMainWindow.
      This usage is explicitly documented in QToolBar documentation:

      A toolbar is typically created by calling QMainWindow::addToolBar(const QString &title), but it can also be added as the first widget in a QVBoxLayout, for example.

      However, QToolBar does not exist in the widget list in left dock of Designer. It can be added through context menu when using MainWindow as template.

      I have tried to add a QWidget and change it to QToolBar by editing the XML file directly for test with non-MainWindow template file. The modified file is recognized by Designer without any problem, so I guess this kind of usage is just overlooked.

       

      Attachments

        Issue Links

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

          Activity

            People

              axelspoerl Axel Spoerl
              bylee Byoung-young Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes