CPP
Export2QML *obj = new Export2QML;
contxt->setContextProperty("abc",obj);
viewer.show();
contxt->setContextProperty("abc",NULL);
QML
if (abc != null) {
abc.display();
}else {
console.log("Object is null")
}
↧