Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Scrollbar is disabled by splitter when ScrollView is used in SplitView



  • 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
        }
    }
    

    }


Log in to reply