QtScript and modal widgets
-
Hi all,
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.
MG. -
Hi,
some months ago I started a similar task and I had the same problem.
I found two different solutions to this problem:use QScriptEngine::setProcessEventsInterval
starting script evaluation in different thread
Try both and find what solution fits better to your case
-
Hi mcosta,
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.
MG.