Hi all,

Have a look at an example of my javascript code below, it’s causing the 
following error,

    TypeError: Result of expression 'Component' [undefined] is not an object.

Do I need to include / import the Qt library? or should it already be available?
The strange thing is that Qt.createComponent() works so javascript does seem to 
have some knowledge of the Qt library.

Cheers
Greg

Ps. I’m on a Mac (10.6.3) running Qt Creator 1.3.84 (2.0.0-pre-rc1)


.pragma library

function doStuff() {
    var component = Qt.createComponent("App.qml");
   if (component.status == Component.Ready) {
       print("it worked!");
   }
}

_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to