Nominate our 2022 Qt Champions!

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

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


  • Lifetime Qt Champion


    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.

  • Hello SGaist,

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

  • Lifetime Qt Champion


    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 :)

Log in to reply