this->procCmd = new QProcess( this );
//Command line related
QObject::connect( this->procCmd, &QProcess::readyRead, this, &Terminal::ReadOutput ); //Read command line data
QObject::connect( this->procCmd, &QProcess::readyReadStandardOutput, this, &Terminal::ReadStandardOutput ); //Read command line standard data
QObject::connect( this->procCmd, &QProcess::finished, this, &Terminal::FinishedProcess ); //Command line processing ends
QObject::connect( this->procCmd, &QProcess::errorOccurred, this, &Terminal::ErrorProcess ); //Command line error handling
QObject::connect( this->procCmd, &QProcess::stateChanged, this, &Terminal::OnStateChanged ); //Command line error handling
//this->procCmd->start("cmd", QStringList() << "/c" << "ping www.baidu.com" );