Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to run ts_calibrate in qt application?
Forum Updated to NodeBB v4.3 + New Features

How to run ts_calibrate in qt application?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 1.2k 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.
  • MhM93M Offline
    MhM93M Offline
    MhM93
    wrote on last edited by A Former User
    #1

    Hi. I have friendly arm and I want to play ts_calibrate inside my qt app.I do not need the output of the program. I just run calibrate application from my app and after it finished, it closed and my app continue .
    I wrote these code but it does not work:

    QProcess *process=new QProcess;
    //        QString file = QDir::homepath + "file.exe";
            QString file ="/usr/local/bin/ts_calibrate";
            process->start(file, QStringList() << "");
    //        process.start(file);
            process->waitForFinished(-1);
    

    could any one help me please?

    H.Ghassami

    jsulmJ 1 Reply Last reply
    0
    • MhM93M MhM93

      Hi. I have friendly arm and I want to play ts_calibrate inside my qt app.I do not need the output of the program. I just run calibrate application from my app and after it finished, it closed and my app continue .
      I wrote these code but it does not work:

      QProcess *process=new QProcess;
      //        QString file = QDir::homepath + "file.exe";
              QString file ="/usr/local/bin/ts_calibrate";
              process->start(file, QStringList() << "");
      //        process.start(file);
              process->waitForFinished(-1);
      

      could any one help me please?

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

      @MhM93 If you say "it does not work" you should say what exactly does not work or what happens.
      Does /usr/local/bin/ts_calibrate exist? Is it executable?
      Why do you pass an empty string as parameter:

      process->start(file, QStringList() << "");
      

      ?
      Change it to:

      process->start(file, QStringList());
      

      Why do you wait for the process to finish?

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

      1 Reply Last reply
      1
      • MhM93M Offline
        MhM93M Offline
        MhM93
        wrote on last edited by MhM93
        #3

        If you say "it does not work" you should say what exactly does not work or what happens.

        when I clicked on my button to run these codes,my app hanging and nothing work on my device. I pressed ctrl+c to quit the app.

        Does /usr/local/bin/ts_calibrate exist? Is it executable?

        yes. Its run with ./ts_calibrate

        thank you, its worked, but last touch suddenly come back to my app and another widget open. but it not a big problem. thanks in advance

        H.Ghassami

        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