Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MultiDigiMon -touch doesnt work with QProcess::startDetached("MultiDigiMon -touch");
Forum Updated to NodeBB v4.3 + New Features

MultiDigiMon -touch doesnt work with QProcess::startDetached("MultiDigiMon -touch");

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 709 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JonexElectronic
    wrote on last edited by JonexElectronic
    #1

    Hello,

    I'm trying to open MultiDigiMon.exe in Windows 10 in my QT App to configure touch screens.
    I'm trying with

    QProcess::startDetached("MultiDigiMon -touch");
    

    It doesn't work, nothing happend. I tried to write on cmd.exe and it works. Any idea?

    Thanks

    jsulmJ 1 Reply Last reply
    0
    • J JonexElectronic

      Hello,

      I'm trying to open MultiDigiMon.exe in Windows 10 in my QT App to configure touch screens.
      I'm trying with

      QProcess::startDetached("MultiDigiMon -touch");
      

      It doesn't work, nothing happend. I tried to write on cmd.exe and it works. Any idea?

      Thanks

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @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");
      

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JonexElectronic
        wrote on last edited by
        #3

        @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

        jsulmJ 1 Reply Last reply
        0
        • J JonexElectronic

          @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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • J Offline
            J Offline
            JonexElectronic
            wrote on last edited by
            #5

            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?

            mrjjM 1 Reply Last reply
            0
            • J JonexElectronic

              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?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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 ?

              1 Reply Last reply
              1
              • J Offline
                J Offline
                JonexElectronic
                wrote on last edited by
                #7

                @mrjj Hello, yes I can execute and no dialog are showed.
                I think the problem is that I am running a QT 32 bit app on a WIN10 x64 OS. Based on this post :
                link text

                But I found this post really interesting:
                link text

                I will try.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved