Instead, I'd assume you need to access it through the listview:
console.log(... + listView.delegate.items.height)
That's what I would try. But this is untested, so I might be completely
wrong here.
P.S. QML is still a pretty new beast, so even someone like me who makes
a living being a Qt expert still needs to learn some of the things
around it. That's why I write this mail instead of letting it go when I
don't know for sure. I want to see the discussions around subjects like
this, so I can learn more about the topics.
Bo.
> _______________________________________________
> Qt-qml mailing list
> Qt-...@qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
_______________________________________________
Qt-qml mailing list
Qt-...@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
What you can do is to iterate over the children attribute of the
ListView. That's the only way I can see to do this.
Bo.
Den 01-03-2012 00:17, Krenar Qehaja skrev:
> _______________________________________________
> Qt-qml mailing list
> Qt-...@qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
console.log("listView height: " + listView.currentItem.height)
Attempting to access the id "items" in the context in which you are
doing so will cause the error you are seeing because "items" doesn't
exist in that context. You are in fact unable to refer to delegate items
of lists, etc. by id.
Mark