[Interest] Calling QT Class method from pthread thread

Thiago Macieira thiago.macieira at intel.com
Wed Oct 4 17:33:56 CEST 2017


On Wednesday, 4 October 2017 06:45:09 PDT Tony Rietwyk wrote:
> I don't think the documentation is clear enough, but my assumption is
> that emitting a signal connected with BlockingQueuedConnection can only
> be done in a thread created by QThread that has called QThread.exec in
> its run override. Does your callback thread really have to wait for the
> main thread to finish executing its slot? If not, then I think just
> using QueuedConnection should work from a non-QThread.

That is not correct. BlockingQueuedConnection should work with any thread, 
since QSemaphore works on any thread too.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list