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

QQC2.Page footer takes focus before header and contentItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.2
    • Quick: Controls 2
    • None
    • Operating System: openSUSE Tumbleweed 20240306
    • Linux/X11

    Description

      Run the code and press tab.  Notice that the keyboard focus for a page goes in this order: footer -> header -> contentItem. It should be header -> contentItem -> footer

      import QtQuick
      import QtQuick.Layouts as L
      import QtQuick.Controls as C
      Window {
          width: 600
          height: 800
          visible: true
          L.RowLayout {
              anchors.fill: parent
              spacing: 0
              C.Page {
                  L.Layout.fillHeight: true
                  L.Layout.fillWidth: true
                  header: C.ToolBar {
                      Row {
                          C.Button {
                              text: "Back"
                          }
                          C.Button {
                              text: "Forward"
                          }
                      }
                  }
                  contentItem: Rectangle {
                      color: "red"
                      C.Button {
                          text: "Main control"
                      }
                  }
                  footer: C.ToolBar {
                      Row {
                          C.Button {
                              text: "Load"
                          }
                          C.Button {
                              text: "Save"
                          }
                      }
                  }
              }
              C.Page {
                  L.Layout.fillHeight: true
                  L.Layout.fillWidth: true
                  header: C.ToolBar {
                      Row {
                          C.Button {
                              text: "Back"
                          }
                          C.Button {
                              text: "Forward"
                          }
                      }
                  }
                  contentItem: Rectangle {
                      color: "blue"
                      C.Button {
                          text: "Main control"
                      }
                  }
                  footer: C.ToolBar {
                      Row {
                          C.Button {
                              text: "Load"
                          }
                          C.Button {
                              text: "Save"
                          }
                      }
                  }
              }
          }
      }
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jackh Jack Hill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes