On 13/08/2010, at 11:00 AM, ext Robison, Clayne B wrote: > I need to run a script when a QML Item loads and is done initializing. > Launching a script in the default state doesn't seem to work, and there > doesn't seem to be an "onLoad" event that gets fired by Items when they are > done initializing. How does one accomplish this?
Usually Component.onCompleted is used for this type of thing -- see http://doc.trolltech.org/4.7-snapshot/qdeclarativejavascript.html#running-javascript-at-startup for more details (note that there aren't any Item-level notifications for this type of thing from QML, only Component-level). Regards, Michael _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
