Greets! I'm trying to create a list of Items, and it's not clear to me, from within JavaScript, how to add, remove, and count those items. The function below doesn't seem to work (textArray is declared as "property list<Item> textArray"). Note that my startUp function is being correctly called, and I can verify that the TalkBoxTextComponent.createObject method is working. I've tried using .push(), .append(), length, etc, and I'm having no luck so far.
****** var TalkBoxTextComponent; function startUp() { TalkBoxTextComponent = Qt.createComponent("TalkBoxText.qml"); } function appendText(string) { var object = TalkBoxTextComponent.createObject(talkbox); object.text = string; talkbox.textArray[0] = object; talkbox.textArray[1] = object; } ****** Thanks, Bart -- --
_______________________________________________ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-qml