Hi all,

I should implement a very simple form in which I have two buttons: Start and Stop.
Connected to the Start button I have a loop like:

PROCESS_IS_RUNNING=true;

while (i<I_Max && PROCESS_IS_RUNNING)
{
....
}

where PROCESS_IS_RUNNING is a global bool variable.

When the Stop button is clicked the variable PROCESS_IS_RUNNING is set to false value. I was expecting in this way to stop the loop when the Stop button is pressed but this is not the case. I cannot press the Stop button until the process connected to the Start button is completed (when i=I_MAX). I guess this is a signals handling problem under qt but I cannot figure out how to implement the solution. Any suggestion?

Thank you in advance for you attention

Bye