QScriptEngine Pause execution



  • Hi

    I want to create a application where i can run my own scripts.
    I have set it up so far to get it working, slots are called etc...

    Scriptengine runs in its own thread.
    There is another commThread which handles TCP Socket communication.

    Usecase:

    Script says doSomething
    ScriptEngine calls corresponding slot in commThread
    connected commThreadSlot sends doSomething.
    --> here the execution of the called slot by the scriptengine should pause until a response is received by the commthread.

    So after receiving a response from the commthread the scriptengine should continue with the execution of the script.

    Any idea how to solve this ?

    cheers Flo


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.