Item visibylity in a ListView
When using a ListView, items that are not supposed to be displayed ( out of the ListView area ) are still visible if the listview is on top of everything else ( qml elements ).
Here is a little bit of code to understand the issue ( not all parameters are set, it is just for understanding ) :
width: parent.width * 0.9
height: parent.height * 0.9
width: parent.width - 10
height: parent.height - 10
What happens is that when I have more items to display ( in height ) than the list view can contains, they are visible in the listViewHolder and in the mainWindow. It messes up the DropShadow and it really ugly to watch.
Is there any way to tell the list view to make those items disappear or do I have to handle this myself in the delegate ?
you should set "clip: true" in your ListView or Rectangle (that is a property of the Item base object, check out the doc) :)
Thanks it works..I knew about that property but never thought of using it..