Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. What property is the red line selected by TabBar?
Forum Updated to NodeBB v4.3 + New Features

What property is the red line selected by TabBar?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 4 Posters 594 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Online
    M Online
    mirro
    wrote on last edited by mirro
    #1
    TabBar {
        TabButton {
            text: qsTr("test")
        }
        TabButton {
            text: qsTr("test")
        }
        TabButton {
            text: qsTr("test")
        }
    }
    
    Pablo J. RoginaP 1 Reply Last reply
    0
    • M mirro
      TabBar {
          TabButton {
              text: qsTr("test")
          }
          TabButton {
              text: qsTr("test")
          }
          TabButton {
              text: qsTr("test")
          }
      }
      
      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @mirro it looks like how the selected tab is shown.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      M 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @mirro it looks like how the selected tab is shown.

        M Online
        M Online
        mirro
        wrote on last edited by
        #3

        @Pablo-J-Rogina How do I change the color value of this property?

        KroMignonK 1 Reply Last reply
        0
        • M mirro

          @Pablo-J-Rogina How do I change the color value of this property?

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by
          #4

          @mirro said in What property is the red line selected by TabBar?:

          How do I change the color value of this property?

          Take a look at documentation:

          • https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-tabbar
          • https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-tabbutton

          I suppose you have to create a customized TabButton to resolve your issue.

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          M 1 Reply Last reply
          0
          • KroMignonK KroMignon

            @mirro said in What property is the red line selected by TabBar?:

            How do I change the color value of this property?

            Take a look at documentation:

            • https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-tabbar
            • https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-tabbutton

            I suppose you have to create a customized TabButton to resolve your issue.

            M Online
            M Online
            mirro
            wrote on last edited by mirro
            #5

            @KroMignon

            How do I elide TabBarButton When TabBarButton beyond the TabBar boundary?
            Is there a similar elide:Text.ElideRight method?

            1 Reply Last reply
            0
            • MarkkyboyM Offline
              MarkkyboyM Offline
              Markkyboy
              wrote on last edited by
              #6

              I had no idea how to do this, so I Googled it.

              custom-tab-bar.JPG

              Don't just sit there standing around, pick up a shovel and sweep up!

              I live by the sea, not in it.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved