PDA

View Full Version : QML Autocompletition



codeman
19th June 2013, 09:25
Hello friends,

when I create my object dynamically like:


var oObj = Qt.createComponent("myobject.qml");
oObj = oObj.createObject(root);


I have no autocompletition in QtCreator is this normal behavior?

When I create it in main.cpp:



engine.rootContext()->setContextProperty("oObj", new MyObject());


I have no problem in autocomplete in editor!


Any suggestion/Informations to this behavior?


Yours,

sonulohani
22nd June 2013, 08:04
Yup that is normal. Its not a problem in Qt creator. Its a dynamic member which needs to be access only at the run time as in every scripting language.