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

Toolbar is not displayed in the app if it is set via header property in ApplicationWindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.5.1
    • Qt VNC Server
    • None
    • Boot2Qt_6_5_1_NXP_i_MX_8QuadMax_MEK using VNC server

    Description

      Steps to reproduce:

      1. Run the attached sample code.
      2. Build and run the app on Boot2Qt device.

       

      Expected: Toolbar is displayed (see attached desktop screenshot for the reference) 

      Actual: There is no toolbar.

      Reproducibility:  100%

       

      Sample code:

      import QtQuick
      import QtQuick.Window
      import QtQuick.Layouts
      import QtQuick.Controls
      import QtVncServerApplicationWindow {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          VncItem {anchors.fill:parent}
          header: ToolBar {
              RowLayout {
                  id: headerRowLayout
                  anchors.fill: parent
                  spacing: 0            ToolButton {
                      text: qsTr("A")
                  }
                  ToolButton {
                      text: qsTr("B")
                  }
                  ToolButton {
                      text: qsTr("C")
                  }
                  ToolButton {
                      text: qsTr("D")
                  }
                  Item {
                      Layout.fillWidth: true
                  }            ToolButton {
                      text: qsTr("Q")
                      onClicked: Qt.quit()
                  }
              }
          }
      }
       

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              lkos Łukasz Kosiorowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes