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