Get QProcess from pid ?
-
Is there a way to get a pointer to a QProcess that has been launched using just its PID ?
I'm asking this because presently I have created a map to maintain pointers to QProcess instances when a process was launched, I'm curious to learn if this is required and if instead I can just keep the PID when launched and then lookup or get the QProcess from the PID?
-
Is there a way to get a pointer to a QProcess that has been launched using just its PID ?
I'm asking this because presently I have created a map to maintain pointers to QProcess instances when a process was launched, I'm curious to learn if this is required and if instead I can just keep the PID when launched and then lookup or get the QProcess from the PID?
@SPlatten said in Get QProcess from pid ?:
Is there a way to get a pointer to a QProcess that has been launched using just its PID ?
Nope.
I'm asking this because presently I have created a map to maintain pointers to QProcess instances when a process was launched, I'm curious to learn if this is required and if instead I can just keep the PID when launched and then lookup or get the QProcess from the PID?
Keep using your map.