threadFormatDetector::threadFormatDetector(formatDetectorEngineRoot* _formatDetector, QObject *parent) : QThread(parent){ std::cout <<"jobProcessing1 " << (int)this->currentThreadId() << std::endl; this->moveToThread(this); std::cout <<"jobProcessing2 " << (int)this->currentThreadId() << std::endl; this->formatDetector = _formatDetector;}