I do not see any API to set the priority of a QProcess in Qt Documentation. I assume the process is started with normal priority.
Is there a way to start the process with lower priority on Linux?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I dont think there exists an API to set the priority of the process using a Qt call. I used direct Linux calls and was successfully able to change the process priority.
Refer : http://pubs.opengroup.org/onlinepubs/009696699/functions/setpriority.html