PDA

View Full Version : QRunnable - how to cancel execution?



TorAn
3rd March 2010, 19:22
I did not find a way to cancel a thread of execution when using QThreadPool::globalInstance()->start. The only way to cancel seems to be setting a flag inside the execution context.

Question - how to cancel execution when QThreadPool::globalInstance()->start (instance derived from QRunnable)?

wysota
3rd March 2010, 20:11
You can't cancel a runnable.