<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to control console application in Qt.</title>
	<atom:link href="http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/feed/" rel="self" type="application/rss+xml" />
	<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/</link>
	<description>open source</description>
	<lastBuildDate>Sat, 21 Jan 2012 11:52:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Marek Belisko</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-597</link>
		<dc:creator>Marek Belisko</dc:creator>
		<pubDate>Mon, 02 Jan 2012 08:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-597</guid>
		<description>You can use: http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#waitForFinished
For autoscroll just read manual for textEdit : http://developer.qt.nokia.com/doc/qt-4.8/qtextedit.html (or use qtcreator to set property)</description>
		<content:encoded><![CDATA[<p>You can use: <a href="http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#waitForFinished" rel="nofollow">http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#waitForFinished</a><br />
For autoscroll just read manual for textEdit : <a href="http://developer.qt.nokia.com/doc/qt-4.8/qtextedit.html" rel="nofollow">http://developer.qt.nokia.com/doc/qt-4.8/qtextedit.html</a> (or use qtcreator to set property)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: markc</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-595</link>
		<dc:creator>markc</dc:creator>
		<pubDate>Mon, 02 Jan 2012 06:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-595</guid>
		<description>Great, thanks, now I see what I was missing. I know this goes beyond your example but if you care to offer a suggestion then it will be appreciated. If I try this it mostly works...
m_process-&gt;start(&quot;tail -f /var/log/syslog&quot;);

When quitting I get this...

QProcess: Destroyed while process is still running.

. is there a &quot;proper way&quot; to stop the background process when exiting the main program?
. and is there a simple setting to get the window to auto scroll as new lines are added?

If both the above are really simple and if an argv[1] could be used then this fine example actually becomes useful.</description>
		<content:encoded><![CDATA[<p>Great, thanks, now I see what I was missing. I know this goes beyond your example but if you care to offer a suggestion then it will be appreciated. If I try this it mostly works&#8230;<br />
m_process-&gt;start(&#8220;tail -f /var/log/syslog&#8221;);</p>
<p>When quitting I get this&#8230;</p>
<p>QProcess: Destroyed while process is still running.</p>
<p>. is there a &#8220;proper way&#8221; to stop the background process when exiting the main program?<br />
. and is there a simple setting to get the window to auto scroll as new lines are added?</p>
<p>If both the above are really simple and if an argv[1] could be used then this fine example actually becomes useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek Belisko</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-589</link>
		<dc:creator>Marek Belisko</dc:creator>
		<pubDate>Sun, 01 Jan 2012 13:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-589</guid>
		<description>You can get whole qt project from here (I update post with complete example). Form with ui was missing. Sorry.</description>
		<content:encoded><![CDATA[<p>You can get whole qt project from here (I update post with complete example). Form with ui was missing. Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: markc</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-587</link>
		<dc:creator>markc</dc:creator>
		<pubDate>Sun, 01 Jan 2012 08:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-587</guid>
		<description>I&#039;m not sure what to do about this in updateOutput(). Is there any chance of a complete working example?

error: &#039;class Ui::MainWindow&#039; has no member named &#039;textEdit&#039;</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what to do about this in updateOutput(). Is there any chance of a complete working example?</p>
<p>error: &#8216;class Ui::MainWindow&#8217; has no member named &#8216;textEdit&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek Belisko</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-569</link>
		<dc:creator>Marek Belisko</dc:creator>
		<pubDate>Thu, 27 Oct 2011 13:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-569</guid>
		<description>Well you can use write method to push some data to console app. Code snippet will help :)</description>
		<content:encoded><![CDATA[<p>Well you can use write method to push some data to console app. Code snippet will help <img src='http://open-nandra.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srk</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-568</link>
		<dc:creator>srk</dc:creator>
		<pubDate>Thu, 27 Oct 2011 13:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-568</guid>
		<description>Hi,
I am trying to build the GUI for an executable which processes algorithms.
I am able to start the process and give inputs. I am struck when the console application in the middle of the process looks for some input from the user.

Is there any way which notifies QProcess or interact with  console app. 
Your help would be life saver. 

Regards,
Srk</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am trying to build the GUI for an executable which processes algorithms.<br />
I am able to start the process and give inputs. I am struck when the console application in the middle of the process looks for some input from the user.</p>
<p>Is there any way which notifies QProcess or interact with  console app.<br />
Your help would be life saver. </p>
<p>Regards,<br />
Srk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek Belisko</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-326</link>
		<dc:creator>Marek Belisko</dc:creator>
		<pubDate>Fri, 03 Sep 2010 13:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-326</guid>
		<description>Hi, good to hear you can find help from my experiments ;). Good luck</description>
		<content:encoded><![CDATA[<p>Hi, good to hear you can find help from my experiments <img src='http://open-nandra.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lea</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-325</link>
		<dc:creator>Lea</dc:creator>
		<pubDate>Fri, 03 Sep 2010 13:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-325</guid>
		<description>Hi Marek,
I just want to say thank you so much for this piece of code. I was nearly going mad, because I could not get my application doing this (displaying standard output in a textEdit or so). This helped me a LOT and my application is perfect now :o) So - thank you :o)</description>
		<content:encoded><![CDATA[<p>Hi Marek,<br />
I just want to say thank you so much for this piece of code. I was nearly going mad, because I could not get my application doing this (displaying standard output in a textEdit or so). This helped me a LOT and my application is perfect now <img src='http://open-nandra.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ) So &#8211; thank you <img src='http://open-nandra.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek Belisko</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-228</link>
		<dc:creator>Marek Belisko</dc:creator>
		<pubDate>Fri, 30 Oct 2009 07:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-228</guid>
		<description>Hi,

hmm maybe there&#039;s some misunderstanding. test.c is program which write something to stdout and output from this program you will see in textEdit in QT application when you run it.
Just run QT executable which open test executable and read from test stdout. test executable must be in same directory like qt executable. Hope I don&#039;t confuse you ;). If you have any problems type me an email I&#039;ll send you code.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>hmm maybe there&#8217;s some misunderstanding. test.c is program which write something to stdout and output from this program you will see in textEdit in QT application when you run it.<br />
Just run QT executable which open test executable and read from test stdout. test executable must be in same directory like qt executable. Hope I don&#8217;t confuse you <img src='http://open-nandra.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . If you have any problems type me an email I&#8217;ll send you code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danilo</title>
		<link>http://open-nandra.com/2009/06/how-to-control-console-application-in-qt/comment-page-1/#comment-227</link>
		<dc:creator>Danilo</dc:creator>
		<pubDate>Fri, 30 Oct 2009 00:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://open-nandra.com/?p=251#comment-227</guid>
		<description>Hi, Marek

I did exactly what you said, and the program test.c don&#039;t run on my app. It just appear a window with a blank textEdit inside.

What happened?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, Marek</p>
<p>I did exactly what you said, and the program test.c don&#8217;t run on my app. It just appear a window with a blank textEdit inside.</p>
<p>What happened?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

