I’m doing:
QProcess starter;
starter.setWorkingDirectory("C:/folder/");
starter.start("C:/1.exe");
And it doesn’t launch the C:/1.exe file, which exists and launches fine with QDesktopServices::openUrl(QUrl::fromLocalFile("C:/1.exe"));
The latter doesn’t allow for working dir customization, so I really need QProcess to work. Advices?
P. S. This is on Windows.
↧