Is there any way to get the windows handle for a child process besides waiting for the process to start and using something like the following to push the parent down to ensure the child is on top:

Qt Code:
  1. hParent = winId();
  2. .
  3. .
  4. process.start( "cmd.exe", args);
  5. SetWindowPos( hParent, HWND_BOTTOM, x, y, cx, cy, SWP_NOSIZE);
  6. hChild = GetForeGroundWindow();
To copy to clipboard, switch view to plain text mode