Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

JS name of Global Object



  • On Qt side one can obtain a reference to the JS global Object used in script using QJSEngine::globalObject().
    I would need the actual JS name of it from inside a script.
    It is not window neither the more newly introduced universal name globalThis.
    In other words how can I refer, inside a script, to a global say myVar (a property o the Global Object) using xxxx. myVar or xxx["myVar"] and not just myVar?
    Many Thanks...!!!


Log in to reply