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. [SOLVED] Problems with running command line tool repeatedly with QProcess and push button auto-repeat
Qt 6.11 is out! See what's new in the release blog

[SOLVED] Problems with running command line tool repeatedly with QProcess and push button auto-repeat

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 960 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.
  • A Offline
    A Offline
    admd91
    wrote on last edited by
    #1

    Hello everyone,

    I have built a GUI app that scans for NFC tags/cards. I intend to have a button "Start" which, after clicking, is supposed to continuously call a command line app (thru QProcess) that scans for NFC tags/cards. In Qt Designer I checked the autoRepeat value for my start button, and the autoRepeatDelay has a value of 300, and the autoRepeatInterval has 100. But whenever I run my app, I need to click the start button whenever I want to detect a nearby NFC card, instead of the scanning running continuously after clicking the start button. From my understanding, after released(), the command line tool should be repeatedly called. Has anyone tried to implement something similar to this?

    Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You're using the wrong tool, the autoRepeatDelay is not to "automatically" resend events when you clicked on the button once. You should rather look at QTimer.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        admd91
        wrote on last edited by
        #3

        Hello SGaist,

        I used QTimer and got what I wanted. Thank you very much!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Good ! You're welcome !

          Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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