Yes, that works! QQmlEngine engine; engine.installExtensions(QJSEngine::AllExtensions); QJSValue part = engine.newQObject(KisPart::instance()); engine.globalObject().setProperty("KisPart", part); engine.setObjectOwnership(KisPart::instance(), QQmlEngine::CppOwnership); QString output = engine.evaluate(script).toString();
Now I can take it from here :-) -- Boudewijn Rempt | http://www.krita.org, http://www.valdyas.org _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest