QtScript disconnect something connected from C++ code
-
Hi folks,
I think the title is quite explicit.
I'm connecting a signal to a slot from my application and would like to disconnect it from a QScript but it looks like I can't do that.
@Error: Function.prototype.disconnect: failed to disconnect from QAction::triggered()@If I connect the same slot to the same signal, I get the connection twice and I'm able do disconnect it only once.
I tried to pass the QObject to the QScriptEngine with the QScriptEngine::ScriptOwnership flag but it won't help.