[Kde-bindings] C#, Qyoto, Qt - How to read output from QProcess?

linuxoidoz at yahoo.com.au linuxoidoz at yahoo.com.au
Fri Feb 19 10:24:43 UTC 2010


I tried this:

			QByteArray data = proc.ReadAllStandardOutput();
			string str = System.Text.Encoding.ASCII.GetString(data.ToArray());
			basicvideowin.txtLog.Append(str);

and again converts the video file but doesn't trigger the readyReadStandardOutput().

------------------  Original Message  ------------------
> We've added a QByteArray.ToArray() method to convert it to a byte[], which you 
> can then convert to a string with something like 
> System.Text.Encoding.ASCII.GetString.



More information about the Kde-bindings mailing list