QThread Event Queue
Unsolved
General and Desktop
-
Hi,
AFAIK, no. Why would you need such a feature ?
-
First thing first: If your program needs such a feature I'm not convinced your design is optimal.
Having said that you could try call
moveToThread(nullptr)
on the worker object inside the thread to achieve what you are asking. I'm not saying it will work, I'm just saying it's the only thing I can think of -
QCoreApplication::removePostedEvents(nullptr, 0);
But it comes with a disclaimer (look up the docs).