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

QToolBar is missing in Designer

XMLWordPrintable

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

      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.

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes