标签:
1.程序重启
void Widget::reboot() { QString program = QApplication::applicationFilePath(); QStringList arguments = QApplication::arguments(); QString workingDirectory = QDir::currentPath(); QProcess::startDetached(program, arguments, workingDirectory); QApplication::exit(); }
标签:
原文地址:http://www.cnblogs.com/ike_li/p/5115579.html