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

linuxoid.au at gmail.com linuxoid.au at gmail.com
Sat Feb 20 07:03:12 UTC 2010

> Or simply use QByteArray.ConstData() which should give you a C# string 
> directly.
I tried this:

		private void updateLog() {
		    QMessageBox.About(this, "About", "Converting");   
			QByteArray data = proc.ReadAllStandardOutput();
			string str = data.ConstData();

and the message never pops up, that is readyReadStandardOutput() never fires, nor does anything get written into the TextEdit box.

More information about the Kde-bindings mailing list