[Qt-qml] ListView.onAdd bizzarness
martin.jones at nokia.com
martin.jones at nokia.com
Thu May 12 06:56:29 CEST 2011
Hi,
Could you provide a runable example?
Br,
Martin.
From: qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com [mailto:qt-qml-bounces+martin.jones=nokia.com at qt.nokia.com] On Behalf Of ext Alistair Adams (Nokia-MS-Qt/SiliconValley)
Sent: Thursday, 12 May 2011 2:44 PM
To: Qt-qml at qt.nokia.com
Subject: [Qt-qml] ListView.onAdd bizzarness
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/20110512/8b124f40/attachment-0001.html
More information about the Qt-qml
mailing list