Solved Qml, problems with Loader and ListView objects
-
Hi, as you can see in the pictures I have got an application with a header in the top, a footer in the bottom and a body in the middle.
The body has got a Loader object in it.
The Loader reads a file where there is a ListView.
By scrolling the items go out of the body and go over the header and the footer.
Where is the error?
Download sources -
@mrdebug , Ensure the list bounding dimensions are proper and not overlapping the header and footer. Then try to set the clip property true to the parent of the list view.
-
Solved with clip: true
-
@mrdebug well, clip is a heavy operation on the draw, the better option would be to draw your list view as the first item of the scene, you do this by moving it to the top of your file hierarchy (preferably) or setting the z value of the other components to something != 0 (the default)