PDA

View Full Version : Flickable area is going over my content Item



bananahana
18th November 2019, 14:32
I am using a Flickable area to be able to scroll over a list of entries in a ListView. I am showing here just a small part of my code:



Rectangle {
id: contentRect
width: 500
height: 800
clip: true

Flickable {
contentHeight: myListView.height

ListView {
id: myListView
//... fill it with some values
}
}
}


However, when I scroll over the flickable area, the ListView gets painted over the borders of the contentRect.

In order to solve this, I added the property "clip: true" into the rectangle. But I don't think this is a good solution. Is there any other way I can control this behavior?