[Qt-qml] ListView.onAdd bizzarness
Alistair Adams (Nokia-MS-Qt/SiliconValley)
alistair.adams at nokia.com
Thu May 12 06:43:40 CEST 2011
Why does the following (much simplified) fragment only work when I
comment out the size of the item? I've been staring at my code and
comparing it to the dynamiclist.qml code and the only difference I can
see is that in my case the item is appended to the model from a
Javascript function rather than from an onClicked handler.
Component{
id: stackListDelegate
Item {
id: stackListDelegateItem
// width: stackListView.width; height: 24
ListView.onAdd: console.log("onAdd")
}
}
-Alistair
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110511/0d44e96b/attachment.html
More information about the Qt-qml
mailing list