⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

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