View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#17
Originally Posted by sixwheeledbeast View Post
Thank you this helped me loads.

After your changes I had an issue were the stop button would no longer function. I am guessing this is due to it being a separate process to the Start button.
It will be because the start script is still running when you press the stop button, so pressing the stop button is asking the QProcess object to run two processes at the same time. Having two separate QProcess instances would solve it, or alternatively using the static method startDetached().
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following User Says Thank You to marxian For This Useful Post: