title: Get PID of process after fork in Qt
body: <p>I am creating a Qt/C++ console application which successfully forks.  When I call QCoreApplication::applicationPid() before fork, and then after fork (in the child), I get the same pid.</p>
  
  <p>I realize I could just use the return value from fork() but I'm trying to do things the Qt way.  Is there a better/right way to get the PID of the child (from within the child) in Qt?</p>
  
  <p>And out of curiosity, why isn't QCoreApplication::applicationPid() providing the new PID?  I assume it's now providing the ppid....</p>