process1 = new QProcess(this);
QProcess * process2 = new QProcess(this);
process1->setStandardOutputProcess(process2);
process1->start("echo fangxin");
process2->start("sudo -S ../dataSource/dataSource");
process2->setProcessChannelMode(QProcess::ForwardedChannels);
int flag = process2->waitForFinished(3000);
if(flag != true)
{
qDebug() <<__FILE__ << __LINE__ << __func__ << process2->errorString();
}