lundi 20 avril 2015

qt wait for signal/event, GUI

I am working on an Qt application which has the possability to use a script to perform several actions. One command within the script requires an external event to happen until the next command in the list can be computed (which is not the case for the rest of the commands).

Usually, I open the file, read a line of the script and process it. This is repeated until the EOF is reached.

Emitting a signal when the external event occured is possible, but the function which runs through the script hast so to be stopped during this timespan.

How can i archive this whithout locking the GUI response?

Thank you!

Aucun commentaire:

Enregistrer un commentaire