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. how to abort QJSEngine evaluate

how to abort QJSEngine evaluate

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 745 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.
  • T Offline
    T Offline
    tomnotcat
    wrote on last edited by
    #1

    If evaluate some script that has infinite loop, how to abort the evaluation process.

    for example: evaluate some buggy JS in back thread:

    QJSEngine engine;

    void threadproc() {
    engine.evaluate("while(1){}");
    }

    How to give user a choice to abort the evaluate in main(GUI) thread.

    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