<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[cmd info in a Qt window]]></title><description><![CDATA[<p dir="auto">I'm creating a code and everything is working fine, but I'm running it in a cmd screen, how would I put it in a specific Qt window? I tried the OpenGl widget , Plain text Edit , Dock Widget , widget , Frame option but I couldn't (I don't know if I was directing it wrong because I'm new in the area) the image shows the cmd with the information I'm trying to put in Qt, this window that is in Qt is Plain Text Edit<img src="https://ddgobkiprc33d.cloudfront.net/6ea69bcb-c918-4525-9248-150e2030e88e.png" alt="Sem título.png" class=" img-fluid img-markdown" /> I want to put this data that is appearing in the CMD in the Qt window</p>
]]></description><link>https://forum.qt.io/topic/138288/cmd-info-in-a-qt-window</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 08:45:43 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/138288.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Jul 2022 13:19:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cmd info in a Qt window on Sun, 31 Jul 2022 18:54:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> Perfect, I managed to run it without problem, now it's the way the program asks, thank you very much :)<br />
<img src="https://ddgobkiprc33d.cloudfront.net/2efe6298-e429-4693-b8ba-26011d2e1510.png" alt="e06d0db8-3b9d-4e9e-be9d-ac8adb71b520-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/723394</link><guid isPermaLink="true">https://forum.qt.io/post/723394</guid><dc:creator><![CDATA[Satil]]></dc:creator><pubDate>Sun, 31 Jul 2022 18:54:13 GMT</pubDate></item><item><title><![CDATA[Reply to cmd info in a Qt window on Sun, 31 Jul 2022 17:38:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/satil">@<bdi>Satil</bdi></a><br />
Please paste text, not screenshots, so people can copy.</p>
<pre><code>    self.ui.plainTextEdit.setPlainText(self.monitor())

def monitor(self):
    return "oi"
</code></pre>
<p dir="auto">Or</p>
<pre><code>def monitor(self):
    self.ui.plainTextEdit.appendPlainText("ABC")
    self.ui.plainTextEdit.appendPlainText("DEF")
    ...
</code></pre>
<p dir="auto">Or raise signals from <code>monitor()</code> with the text as parameter and attach slot to append to plain text edit.</p>
<p dir="auto">You cannot easily just cause Python <code>print()</code> statements to appear in a <code>QPlainTextEdit</code>.  So depends whether you are in charge of the <code>print()</code> statements.</p>
]]></description><link>https://forum.qt.io/post/723382</link><guid isPermaLink="true">https://forum.qt.io/post/723382</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 31 Jul 2022 17:38:55 GMT</pubDate></item><item><title><![CDATA[Reply to cmd info in a Qt window on Sun, 31 Jul 2022 16:23:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> I'm new to programming, so I don't know what the code to call in PlainTextEdit would look like, could you give an example of how it would look?How would you call the def monitor in PlainTextEdit?<img src="https://ddgobkiprc33d.cloudfront.net/90b367ca-dda6-401f-923f-5d03ba88e5d9.png" alt="Sem título2.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/723378</link><guid isPermaLink="true">https://forum.qt.io/post/723378</guid><dc:creator><![CDATA[Satil]]></dc:creator><pubDate>Sun, 31 Jul 2022 16:23:31 GMT</pubDate></item><item><title><![CDATA[Reply to cmd info in a Qt window on Sun, 31 Jul 2022 15:08:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> I'm creating a code for automatic entries in binary operations, and this information that appears in the CMD is the code analyzing, and when it sees the moment, it makes an entry</p>
]]></description><link>https://forum.qt.io/post/723376</link><guid isPermaLink="true">https://forum.qt.io/post/723376</guid><dc:creator><![CDATA[Satil]]></dc:creator><pubDate>Sun, 31 Jul 2022 15:08:13 GMT</pubDate></item><item><title><![CDATA[Reply to cmd info in a Qt window on Sun, 31 Jul 2022 15:03:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/satil">@<bdi>Satil</bdi></a><br />
If it is your own source code which is e.g. outputting to <strong>cout</strong>/<strong>stdout</strong>, change it to emit signals and in a slot append it to the <code>QPlianTextEdit</code>.  If it is another application use <code>QProcess</code> to run it and grab its output.</p>
]]></description><link>https://forum.qt.io/post/723375</link><guid isPermaLink="true">https://forum.qt.io/post/723375</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 31 Jul 2022 15:03:30 GMT</pubDate></item><item><title><![CDATA[Reply to cmd info in a Qt window on Sun, 31 Jul 2022 14:20:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">What exactly are you running ?<br />
Without knowing that, it's impossible to help you.</p>
]]></description><link>https://forum.qt.io/post/723372</link><guid isPermaLink="true">https://forum.qt.io/post/723372</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 31 Jul 2022 14:20:46 GMT</pubDate></item></channel></rss>