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. ListView Scrollbar height
Qt 6.11 is out! See what's new in the release blog

ListView Scrollbar height

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 696 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.
  • fecubF Offline
    fecubF Offline
    fecub
    wrote on last edited by fecub
    #1

    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: {
                console.log(availableHeight)
                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 ?!?!?

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

    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