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

QQC2 TabBar first TabButton visual state incorrect when deselected

    XMLWordPrintable

Details

    • Linux/X11, macOS, Windows
    • 3f6111588 (dev), 5732179cd (6.7), c37f4b0e4 (6.6), 0ce85f930 (tqtc/lts-6.5)
    • G&UI Finishing 2023

    Description

      When the first TabButton in a TabBar is not selected it does not appear visually correct; its background colour is consistent, but it is vertically displaced as if it is still selected. In the second screenshot Button1 appears broken while Button4 is selected. This appears to only be an issue on desktop.

      import QtQuick
      import QtQuick.Controls
      
      Window
      {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          TabBar
          {
              anchors.topMargin: 5
              anchors.top: parent.top
              anchors.left: parent.left
              anchors.right: parent.right
      
              TabButton { text: "Button1" }
              TabButton { text: "Button2" }
              TabButton { text: "Button3" }
              TabButton { text: "Button4" }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              dorisverria Doris Verria
              timangus Tim Angus
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: