[Interest] create delegate modelData
Kevin Mcintyre
kebin70 at gmail.com
Fri Jul 15 07:07:09 CEST 2016
Below is psuedo code...am I doing something wrong - or is modelData
reserved?
//This works.
-- ~repeater.qml
Item {
Repeater {
model: [
["example"],
]
delegate: Qt.createComponent("maybe_delegate.qml")
}
}
-- maybe_delegate.qml
Item {
objectName: modelData[0]
}
//This does not?
-- nondelegate.qml
Item {
id: nondelegate
Component.onCompleted: {
Qt.createComponent("maybe_delegate.qml").createObject(nondelegate,{
modelData: ["example1"]});
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160714/181be4bc/attachment.html>
More information about the Interest
mailing list