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 in a ScrollView append to rollback sometimes
Forum Updated to NodeBB v4.3 + New Features

ListView in a ScrollView append to rollback sometimes

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

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