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. QtScript - separate contexts for separate scripts
Forum Updated to NodeBB v4.3 + New Features

QtScript - separate contexts for separate scripts

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 681 Views 1 Watching
  • 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
    JulienMaille
    wrote on last edited by
    #1

    Hello,
    I have a program where I look for .script files in a specific folder.
    For each file I then create a button that will load and evaluate the script.
    Now I would like that each script run in its own context, so that a variable declared in one script does not interfere with a variable of the same name in another script.
    I tried to use push and pop context but it seems it is not enough.
    @By default, the `this' object of the new context is the Global Object.@

    1 Reply Last reply
    0

    • Login

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