C++ (Qt)ThreadA::ThreadA(ThreadB *thB) : QThread(){// threadB=thB; connect(this, SIGNAL(MySignal), thB, SLOT(MySlot)); moveToThread(this); start(); }