我正在尝试使用 QPushbutton 运行 wampserver:当我单击 QPushbutton 时,我有一个 SLOT runnig
void LoginFenetre::lancerWampServer(){
//QProcess::startDetached("\"G:/Games/3DM-dhredgoyear/Launcher.exe\"");
QString wampPath = "C:\\wamp\\wampmanager.exe";
QProcess *wamplauncher = new QProcess();
wamplauncher->start(wampPath);
//QProcess::startDetached("C:\\wamp\\wampmanager.exe");//second solution
}
当我尝试使用 launcher.exe 或任何其他解决方案时,第一个或第二个解决方案都没有工作。exe文件它的warking,但它不适用于wampserver