ListView in a ScrollView append to rollback sometimes



  • Hello,

    I do have an issue that does not occurs every times.

    I do have implemented a Scrollview and put inside a ListView (I have made it because it is the only way I found to add a Scrollbar on the side of the listview that I can customize with the Qt 5.4)

    When I scroll the view inside this I append to have rollback sometimes.
    To explain it better I start scrolling until the first quarter of the list for example. Then I scroll until the half and when I release the view goes back to the quarter.

    It does not happened every time so I have no idea what is happening.
    Does anybody have any idea of what could possibly happened ?

    Here is a sample of my ScrollView+ListView :

    ScrollView{
            id :view
            anchors.top: spacerTop.bottom
            anchors.bottom: parent.bottom
            anchors.left: parent.left
            anchors.leftMargin: -parent.width/24
            anchors.right: parent.right
            anchors.rightMargin: parent.width/24
            flickableItem.flickableDirection: Flickable.VerticalFlick
            flickableItem.boundsBehavior: Flickable.StopAtBounds
            flickableItem.interactive: true
    
            style: ScrollViewStyle {
                padding.right: -spacerRight.width/3
                handle: Rectangle {
                    implicitWidth: 10
                    implicitHeight: 30
                    radius: 5
                    color: Style.scrollBarColor
                }
                scrollBarBackground: Rectangle {
                    implicitWidth: 15
                    color: "transparent"
                }
                decrementControl: Rectangle {
                    implicitWidth: 0
                    implicitHeight: 0
    
                }
                incrementControl: Rectangle {
                    implicitWidth: 0
                    implicitHeight: 0
                }
            }
            ListView {
                id: dataView
                clip: true
                spacing : 2
                model: window.model
                delegate: OptionDelegate{}
                interactive: false
            }
        }
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.