Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Script engine, script value, and threading
Qt 6.12 LTS is out! See what's new in the release blog

Script engine, script value, and threading

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 567 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Lets say I make a QScriptEngine (or QJSEngine, lets not worry about which) and move it to a new QThread. Then later I call evaluate on the script engine and get back a QScriptValue. Assuming the QScriptValue is function (i.e. isFunction() is true), when I use the .call() on the QScriptValue, does it execute in the thread I moved the QScriptEngine to? You can't move the QScriptValue itself because it isn't a QObject subclass.

    I know there is a setProcessEventsInterval - lets leave that out of the conversation for the moment.

    Thanks!

    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
    • Unsolved