Hi,
I have tryied but the application was very slow. Maybe I did it wrong. I have deleted the code but it was like this:
worker thread
...
...
...
QCoreApplication::postEvent(myObject,new myEvent());
...
To copy to clipboard, switch view to plain text mode
myClass
bool myClass::event(myEvent *event)
{
...
return true;
}
bool myClass::event(myEvent *event)
{
...
return true;
}
To copy to clipboard, switch view to plain text mode
Thanks,
Hi again,
I have rewrited the code using "QCoreApplication:ostEvent()" and it works fine. The application works as expected.
Using "QCoreApplication:ostEvent()", all the events are processed?
So, using this way I don't need to use mutexes to lock the main and the worker threads about results.
Thanks,
Bookmarks