void MyClass::on_btn_OpenFile_clicked()
{
QProcess p;
QString file=QCoreApplication::applicationDirPath ();//获取当前应用程序路径
file=file +"/getPath(MFC).exe";
p.execute(file);
}
*************************我是邪恶的分割线**************************
QProcess *process;
process=new QProcess;
QString string("F://qt-book-examples//qt-book//chap02//find//123.exe");
if(!process->startDetached(string))
{
QMessageBox::warning(this,tr("erro"),tr("%1").arg(process->error()),QMessageBox::Ok);
}