Then you could share the same instance of QProceess between them, or let one of the window own the QProcess and then and expose a function to write to the QProcess.

BTW, what was your original problem, writing to QProcess, use QProcess.write() (assuming the process talks on stdin)