Qt Thread object only sending signal as Qt:DirectConnection - why?
问题 I have a class derived from QThread : class MyClass : public QThread This class is connected with a slot of another object. Originally this was connected as Qt::AutoConnection . But then - as soon as the thread is started ( MyClass::run() ) - the signal is no longer "reaching the slot" ( why? ). // connected before myObject->run() s = QObject::connect( _myObject, SIGNAL(signalLogMessage(const QString&, QtMsgType)), this, SLOT(slotLogMessage(const QString&, QtMsgType)), Qt::DirectConnection);