开发者

how to print the real QProcess arguments list as the QProcess excute them

开发者 https://www.devze.com 2023-01-14 04:28 出处:网络
How can i see in QProcess the real argument list it is processing? for debuging , i do print the QStringList before i pass its to myPr开发者_如何学运维ocess->start(program, arguments);

How can i see in QProcess the real argument list it is processing?

for debuging , i do print the QStringList before i pass its to myPr开发者_如何学运维ocess->start(program, arguments); is there build in debugging option?


A process created by QProcess will see exactly the argument list you are passing to QProcess::start(). What you see when you print the QStringList passed to QProcess::start() is what the new process will see in its argv[] argument of main() (except for the program executable path, which is prepended as argv[0].

If I misunderstood your question, please feel free to comment.

0

精彩评论

暂无评论...
验证码 换一张
取 消