you can read out the qprocess with a slot using this signal:
Qt Code:
  1. readyReadStandardError ();
To copy to clipboard, switch view to plain text mode 
in your slot, which is called if the signal above was fired
you read the stdout and look if theres a question for a password.
and then write on the qprocess's stdin with
Qt Code:
  1. QProcess proc;
  2. proc.write(password);
To copy to clipboard, switch view to plain text mode 
good luck