Hi,
does anyone know how to determine the PID of a QApplication from within the application itself ? I've been searching for a while now and I didn't find a solution...
Frank
Hi,
does anyone know how to determine the PID of a QApplication from within the application itself ? I've been searching for a while now and I didn't find a solution...
Frank
I guess that will be platform dependant.... look into the system api's of the os u are using..
Well, my application supports 3 platforms (Linux, Win, Mac), so a platform independant solution would be very helpful...
There are so many OS-functions available, but this seems to be a gap
I just wonder why class QProcess provides such a pid()-function...
However, thanks for your reply !
Found this - QCoreApplication::applicationPid ()
hope it helps![]()
Great, that's what I've been looking for ! Thanks !
I checked documentation of QCoreApplication multiple times but I didn't see it...![]()
Bookmarks