Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. JS name of Global Object

JS name of Global Object

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 102 Views
  • 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 Offline
    J Offline
    JMLA
    wrote on 18 Oct 2019, 16:57 last edited by
    #1

    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
    0

    1/1

    18 Oct 2019, 16:57

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved