Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
MultiDigiMon -touch doesnt work with QProcess::startDetached("MultiDigiMon -touch");
JonexElectronic last edited by JonexElectronic
I'm trying to open MultiDigiMon.exe in Windows 10 in my QT App to configure touch screens.
I'm trying with
It doesn't work, nothing happend. I tried to write on cmd.exe and it works. Any idea?
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");
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?
If you run C:\Windows\System32\MultiDigiMon.exe in a cmd prompt can the app start without showing a
UAC "allow this" dialog ?
But I found this post really interesting:
I will try.