Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hello,
I want to register GUI objects like the QMainWindow in my QJSEngine. Is there a way to set the ownership like in QScriptEngine::newQObject? I don't want QJSEngine to take the ownership, because I destroy the engine before I destroy the GUI.
Thanks in advance
Simpl
I finally found a "solution".
The documentation says QJSEngine::newQObject uses JavaScriptOwnership. But: this is only the case for QObjects that do not have a parent.
So i just set a dummy parent to my objects and now it works.