I am having trouble trying to get my program to continually send the string \"move 200\" while I hold down a button. I have the button set to auto repeat howeve
From the docs:
A push button emits the signal clicked() when it is activated by the mouse, the Spacebar or by a keyboard shortcut. Connect to this signal to perform the button's action. Push buttons also provide less commonly used signals, for example, pressed() and released().
So please use pressed/released instead of clicked.
clicked is send once a mouse clicks the button, maybe after it was released. I don't know how Qt "knows" to handle single and double clicks.
pressed is send by the "push down" action and released by the release action. So simply set your flag accordingly to the both signals.
BTW: You have to use some kind of loop around you sending function, typically calls periodically or always if your file io becomes writeable. Simply firing on a io will not do what you expect.