Hi,

I have a thread that emits queued signals to an object. I have a mechanism to stop the thread in mid-processing and restart it with different parameters.

My problem is that I often have an item in the signal queue that arrives at my receiver after stopping the thread.

Is there a way to
a) wait until the queue has flushed (I tried Qt::BlockingQueuedConnection, but that often 'jams' my program)
OR
b) discard the queue at will

Thanks!
-K