Op 24-8-2011 6:18, Jason H schreef:
I am trying to use a ListView, but I cannot figure out how to do what I want.

My problems are such:
I want to anchor the list to the bottom left of the parent (easy)
However, I am not sure how big to make the ListView height and width.
If I guess wrong, the list view allows me to scroll (good)
But I'd like to have the items sink tothe bottom.

In the old days, I'd have used a spacer to push them down, but the ListView seems to always want to float items to the top. I don't see a setting on how to do this. If I could know the contentHeight, I'd set the height to that. But when I set

height:view.contentHeight

I get an error "can't find view" even though it is an attached property in the docs.

Help?

A trick I recently read about: put a black header above your list with the size of your ListView itself. That will allow you to grow from the bottom.

André
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to