connect(src, SIGNAL(..), dst, SLOT(..), ..);qDebug() << "src " << src->thread();qDebug() << "dst " << dst->thread();
void ProcessThread::run(){ start(); DataProcessor->Process();}
void ProcessThread::ConsoleMessage( QString message ){ emit sigConsoleMessage( message );}
ProcessThread::ProcessThread(MainWindow *frontend) : QThread(frontend){ connect( this, SIGNAL(sigConsoleMessage(QString)), frontend, SLOT(slMessage(QString))/*, Qt::QueuedConnection*/);}
extern "C" void thread_stream( char* msg ){ frontend->processThread()->ConsoleMessage(QString(QObject::tr(msg)));}
extern "C" void thread_stream( char* msg ){ processThread->ConsoleMessage(QString(QObject::tr(msg)));}
C++ (Qt)ProcessThread *thread = new ProcessThread;thread->start();
C++ (Qt)void ProcessThread::run(){ DataProcessor->Process();}