qt - Emitting signals from other threads -


I have a class with main thread and 3 other threads (2 keythroughs and 1 QtConcurrent :: runs) . Inside this method, I occasionally emit a signal. Is it OK or it can cause problems because I am not emitting signals related to calling thread.

Yes, that's absolutely right. QT inter-thread communication makes for you transparently. If the slot requires fire then the signal is queued in the second thread and enters the destination event when it enters its event loop.

You can try it and see what happens in the debugger


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -