Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Why doesn't Qprocess::start work for me?
Violet Giraffe last edited by
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.
Where do you use the QProcess code ?
if it's something like this:
start will get destroyed because it gets out of scope. So 1.exe will get killed.
Have a looked at the QProcess documentation, the different methods are explained.