Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved JS name of Global Object

    General and Desktop
    1
    1
    41
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JMLA last edited by

      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...!!!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post