TerminalThread::TerminalThread (TerminalObject& terminal) : QThread (), _terminalObject (terminal){ moveToThread (this);}void TerminalThread::run (){ Terminal _terminal (_terminalObject); _terminal.moveToThread (this);...
TerminalThread::TerminalThread (TerminalObject& terminal) : QThread (), _terminalObject (terminal){ qDebug () << "New thread" << thread()->currentThreadId(); moveToThread (this); qDebug () << "New thread2" << thread()->currentThreadId();}