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. Can't drag a ScrollBar
Forum Updated to NodeBB v4.3 + New Features

Can't drag a ScrollBar

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

    I've got a Qt 5.10 Quick Controls 2 project.

    In it, I have a ScrollView, which is working with gestures (e.g. when I use a flick gesture on my Apple Magic Mouse), but is unresponsive when I try to click on the scroll thumb and drag it.

    ScrollView{
                id:myScrollView
                contentHeight: 1000
    
                ScrollBar.vertical: ScrollBar{
                    policy: ScrollBar.AsNeeded
                    anchors.top: parent.top
                    anchors.right: parent.right
                    anchors.bottom: parent.bottom
                    active:pressed
                }
    }
    

    I've tried changing the ScrollBar interactive property, but that doesn't seem to effect the behavior.

    What's the secret to making a scroll bar respond to mouse clicks and mouse wheels?

    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