Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Use Script object & function ?
I am using Qt 5.4.0.
Var ab = "test contents";
The file with the above contents was executed as a script.
And delete Var ab = "test contents";
If you run the script after writing ab only, ab has test contents set.
The function is the same.
function ab ()
Write it down, erase it after execution, and just execute ab () to execute it.
Is the variable name or function name stored somewhere?
Pl45m4 last edited by
Can you explain your problem in more details please?
Pl45m4 last edited by Pl45m4
Oh ok, wasn't aware that something like this even exists as Qt feature :)
Back to your problem:
Just a guess: I would say that your test string is still in your memory (stack) somewhere, so that your function can still access your test string.
Then, if you execute another script file inside the script, the function of the other script should be possible as the above problem, but the function of the other script is not executed.