MultiDigiMon -touch doesnt work with QProcess::startDetached("MultiDigiMon -touch");
-
Hello,
I'm trying to open MultiDigiMon.exe in Windows 10 in my QT App to configure touch screens.
I'm trying withQProcess::startDetached("MultiDigiMon -touch");
It doesn't work, nothing happend. I tried to write on cmd.exe and it works. Any idea?
Thanks
-
@JonexElectronic said in MultiDigiMon -touch doesnt work with QProcess::startDetached("MultiDigiMon -touch");:
It doesn't work, nothing happend.
You are using a relative path. Construct full path to the executable.
Also, use QProcess properly: command to execute and parameters are two diffrent parameters (see documentation).QProcess::startDetached("MultiDigiMon", QstringList() << "-touch");
-
@jsulm said in MultiDigiMon -touch doesnt work with QProcess::startDetached("MultiDigiMon -touch");:
QstringList() << "-touch"
QProcess::startDetached("C:\\Windows\\System32\\MultiDigiMon.exe", QStringList() << "-touch");
And it doesn't work
-
@JonexElectronic Then try with start() and connect a slot to https://doc.qt.io/qt-5/qprocess.html#errorOccurred to see what error you get.
-
I wrote the next code to get the error:
QProcess *ElProceso = new QProcess(this); connect(ElProceso, SIGNAL(errorOccurred(QProcess::ProcessError)),this , SLOT (showError(QProcess::ProcessError))); ElProceso->start("C:\\Windows\\System32\\MultiDigiMon.exe", QStringList() << "-touch");
showError is a funtion that just show me the ProcessError.
The error returned is 0.
What I should do?
-
@JonexElectronic
Hi
If you run C:\Windows\System32\MultiDigiMon.exe in a cmd prompt can the app start without showing a
UAC "allow this" dialog ?