Hi guys,

I have a strange problem. I'm doing a gui for ffmpeg, and I start ffmpeg using qprocess from within my program. It works nice, but while it's encoding I want to get ffmpeg process pid. If I try to use
Qt Code:
  1. QProcess::pid()
To copy to clipboard, switch view to plain text mode 
it gives me some random strings taken from the gui, I think it reads some invalid memory region.
How can I solve this?
Please note that I try to get the pid after the started() signal is emitted and if
Qt Code:
  1. qprocess::state()
To copy to clipboard, switch view to plain text mode 
gives me "Running" and while ffmpeg is encoding, so I am 100% sure that the process is running.

Any idea?

Thx in advance