views:

491

answers:

2

Hello

Qt uses signals and slots normally in a single thread, so calling a signal will call a slot in the same thread signal called. Is it any way to use a signal-slot mechanism to pass a message to qt thread ( so slot will be called later in specified thread's context )?

A: 

I think the usual way of dealing with that is to have the signal handler enqueue some other function (using boost::bind or some such functor thing) and then have the target threadqueue run it later.

jeffamaphone
+7  A: 

Signals and slots across threads found on the start page of the official Qt documentation.

Georg