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

TabBar: cannot mix fixed and implicitly resized tabs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.7.1
    • 5.7.0
    • Quick: Controls 2
    • None
    • b4ce31415baba84ca82aec68f4480b3e6ac89b90

    Description

      It should be possible to mix fixed size tabs and implicitly resized tabs:

      import QtQuick 2.7
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          id: window
          width: 360
          height: 360
          visible: true
      
          header: TabBar {
              id: bar
              Repeater {
                  id: repeater
                  model: 3
                  TabButton {
                      text: "Tab " + (index + 1)
                  }
              }
              TabButton {
                  text: "Fixed"
                  width: contentItem.implicitWidth + leftPadding + rightPadding
              }
          }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes