Nominate our 2022 Qt Champions!

ListView Scrollbar height

  • Is it possible to change the height of an ScrollBar in Listview?

    ListView {
        id: listView1
        Layout.fillWidth: true
        Layout.fillHeight: true
        model: 200
        clip: true
        ScrollBar.vertical: ScrollBar {
            active: true
            width: 20
            height: 50  // changing this value, does nothing !!!
            onActiveChanged: {
                if (!active)
                    active = true

    I have set the height, but the ScrollBar height does not change. But changing the value of the width, make it wider ?!?!?

    Is it also possible to change the radius of the ScrollBar to make it more rectangular?

Log in to reply