Nominate our 2022 Qt Champions!

in qml, how to remove tabbar bottom line



  • 截屏2020-02-27下午2.29.37.png

    TabBar {
            width: parent.width
            TabButton {
                text: "First"
                //width: implicitWidth
            }
            TabButton {
                text: "Second"
                //width: implicitWidth
            }
            TabButton {
                text: "Third"
                //width: implicitWidth
            }
        }
    


  • @flyzero

    If I run your code as it is, there is no bottom line of the tab bar. Perhaps to give us some more of your code so as to replicate what you show in your image.


Log in to reply