头文件要一个QProcess
qApp->quit();
QProcess::startDetached(qApp->applicationFilePath(),QStringList());呃,就这两句话就行了。你扔一个槽函数里面,触发就O了。