QtScript and modal widgets
In order to automate some gui tests, I use QtScript to play some scenarios. It works globally fine but I have an issue with modal widgets where the script execution is blocked in the exec function.
Did someone faced and resoved this issue without changing the modality of the dialogs.
Thanks in advance.
some months ago I started a similar task and I had the same problem.
I found two different solutions to this problem:
starting script evaluation in different thread
Try both and find what solution fits better to your case
Thanks for the reply.
I think that the second suggestion could lead to a crash since that the execution in a QScriptEngine is not thread safe.
I'll try the first one.
Thanks a lot.
[quote author="kmedghaith" date="1373360935"]I think that the second suggestion could lead to a crash since that the execution in a QScriptEngine is not thread safe.[/quote]
If you use QScriptEngine only in one thread you don't have problem