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

TabBar does not get flickable when using Universal theme

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.13.1, 5.14.0 Beta 1
    • Quick: Controls 2
    • None
    • All

    Description

      The documentation states that the TabBar gets flickable when the buttons' width exceeds the available width. This is true for the Material theme, but with the Universal theme the buttons overlap:

      import QtQuick 2.12
      import QtQuick.Controls 2.5
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Tabs")
      
      
          footer: TabBar {
              id: tabBar
              currentIndex: swipeView.currentIndex
      
              Repeater {
                  model: 10
      
                  TabButton {
                      text: qsTr("Page ") + index
                      width: implicitWidth
                  }
              }
          }
      }
      
      

      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
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes