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:

Qt Code:
  1. Rectangle {
  2. id: contentRect
  3. width: 500
  4. height: 800
  5. clip: true
  6.  
  7. Flickable {
  8. contentHeight: myListView.height
  9.  
  10. ListView {
  11. id: myListView
  12. //... fill it with some values
  13. }
  14. }
  15. }
To copy to clipboard, switch view to plain text mode 

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?