In one thread calculate an approach to one curve, and in certain steps drawing the current curve and continue calculating, I emit a signal when I want draw this curve, I put a debug message to see the process to draw, like this:
Thread::ProcessX()
{
...
qDebug()<<"Draw";
emit draw();
qDebug()<<"Stop";
...
}
77(signal send to DrawProcess() in the interface
Interface::DrawProcess()
{
qDebug()<<"Now";
...
}
Thread::ProcessX()
{
...
qDebug()<<"Draw";
emit draw();
qDebug()<<"Stop";
...
}
77(signal send to DrawProcess() in the interface
Interface::DrawProcess()
{
qDebug()<<"Now";
...
}
To copy to clipboard, switch view to plain text mode
When I run the program, in the terminal i see this:
Draw
Stop
Now
Draw
Stop
Draw
Stop
Draw
Stop
Now
Now
Now
Draw
Stop
Now
Draw
Stop
Draw
Stop
Draw
Stop
Now
Now
Now
To copy to clipboard, switch view to plain text mode
What's up?
Please Help
P.D. Sorry for my bad english
Bookmarks