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. Scrollbar is disabled by splitter when ScrollView is used in SplitView
Qt 6.11 is out! See what's new in the release blog

Scrollbar is disabled by splitter when ScrollView is used in SplitView

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

    I have ScrollView in SplitView. when the scrollbar showup, it does not respond to mouse drag because it is captured by splitter of SplitView. This make the ScrollView unusable. Currently the splitter mouse capture width is pretty wide and it totally covered scrollbar.

    any suggestion.

    here is the code:

    import QtQuick 2.6
    import QtQuick.Window 2.2
    import QtQuick.Controls 1.4
    import QtQuick.Layouts 1.1

    SplitView {
    anchors.fill: parent
    orientation: Qt.Horizontal

    ScrollView{
        height:200
    
      
        Rectangle {
            width: 200
            height:400
            Layout.maximumWidth: 400
            color: "lightblue"
            Text {
                text: "View 1"
                anchors.centerIn: parent
            }
        }
    }
    Rectangle {
        id: centerItem
        Layout.minimumWidth: 50
        Layout.fillWidth: true
        color: "lightgray"
        Text {
            text: "View 2"
            anchors.centerIn: parent
        }
    }
    

    }

    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