简体   繁体   中英

Getting pid of a process running by execute function in QProcess

如何获取由QProcess.execute(....,....)运行的进程的pid。

I don't think you can. Also, as QProcess::execute blocks until the termination of the process, the PID wouldn't be of much use anyway. If you want more control over the external process, create a QProcess object.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM