Hello friends,
is it possible to add method on behalf of prototyping after I create objects with Qt.createQmlObject() which return me an Object implemented in C++.
Like this for Example:
USeCase afterward:var component = Qt.createQmlObject('import QtQuick 2.2\nimport mysoft.labs.myObject 1.0\nMDObject{Component.onCompleted: console.log("MDObjectCreate ok");}',root);
if(component == null) {
console.log("error creating object" + component.errorString());
}
...
component .prototype.testFunction = function()
{
console.log("Trigger TEstFunction");
}
component.testFunction();
Bookmarks