void QEncThread::run() { coder = new QProcess(this); qDebug()<<"Executing: "<start(command,opts1); /* ..... */ }