Unsolved Qprocess Start vs Start detached
-
Hello everyone,
I understand there are some differences between both functions, however I have found that the script finish time is a lot faster when choosing startdetached instead of start, for example:I have a python script that communication by udp with my qt program, i start this script from my program GUI, if if use start, this script takes 30 minutes to finish, if i use start detached it takes about 22 minutes to finish, so start detached seems to be a lot faster, any explaination to this?
Thanks.
-
@Ahmadinho said in Qprocess Start vs Start detached:
any explaination to this?
Does your script output a lot of text to the console?
-
@Christian-Ehrlicher ,
No it does not, only like 15 prints or so.However it communicates heavily on UDP.
-
Try to close the channels anyway to see if there is a difference.
-
What do you mean by close channels? you mean use closereadchannel and closewrite channel, and if I use them, will i be able to redirect the stdoutput of the process to my program(which works with start but not start detached) or not?
Thanks.
-
@Ahmadinho said in Qprocess Start vs Start detached:
will i be able to redirect the stdoutput of the process to my program
No, you can't anymore. It's also just for testing to find out if this can be the problem.