<?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[More xterm in MDI example challenge]]></title><description><![CDATA[<p dir="auto">Reason  I used MDI example - it has many useful features - such as "tile the displays"....<br />
Works as expected, however, need some tuning-up.</p>
<p dir="auto">Here is an example  - "stuff"  - I do not know what to call it - in MDI example it is a subwindow / child - so far of unknown type.</p>
<p dir="auto">The xterm filled the original size of this sub-window just   fine.</p>
<p dir="auto">Resizing this sub window to the current size <strong>DID NOT resize</strong> the original.<br />
So my current desire is to redraw the original to fit into "up sized sub window".</p>
<p dir="auto">I am looking at the params item  QString::number(winId()) which tells the xterm "where to write (window) "  the command output.</p>
<p dir="auto"><strong>Should  I be able to access that window and copy its contents to expanded  subwindow ?</strong></p>
<p dir="auto">How ?</p>
<pre><code>        params &lt;&lt; "-T" &lt;&lt; "bluetoothctl no options (interactive) case 1 -hold file " &lt;&lt; "-fa" &lt;&lt;"Monospace" &lt;&lt; "-fs" &lt;&lt; "14"&lt;&lt; "-hold" &lt;&lt;
                  "-into" &lt;&lt;QString::number(winId())&lt;&lt;
                  "-e" &lt;&lt; "bluetoothctl  | tee /tmp/temp.txt";

        qDebug() &lt;&lt;"params " &lt;&lt; params;
</code></pre>
<p dir="auto">Any suggestion will be appreciated.</p>
<p dir="auto">PARTIALLY SOLVED</p>
<p dir="auto">MDI example has "Save file"  menu option - hence there is a file somewhere  waiting to be accessed...</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/e93e4045-ff8f-4a28-9271-f747c83be1aa.png" alt="eab2ee9a-e5b1-458a-a3c1-7449c28d5cde-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/139328/more-xterm-in-mdi-example-challenge</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 03:12:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139328.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Sep 2022 23:55:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to More xterm in MDI example challenge on Thu, 15 Sep 2022 14:42:12 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch<br />
Indeed.  You asked about resizing <em>once the <strong>xterm</strong> is running</em> ("Resizing this sub window to the current size DID NOT resize the original."), I think you are stuck with that.  You can specify to <strong>xterm</strong> how big the window initially when you invoke it, to use more space if you have it, but I don't think you can "send a message" to the <em>running</em> <strong>xterm</strong> if the user <em>later</em> resizes the Qt window.</p>
<p dir="auto">As for the output being sent from the <strong>xterm</strong> directly into the widget via the <code>"-into" &lt;&lt;QString::number(winId())</code>.  If that widget is a <code>QTextEdit</code> and you can get to see what it put there via <code>QTextEdit::text()</code> then that is excellent and that way you can get to see what it output there if you need to!</p>
]]></description><link>https://forum.qt.io/post/728867</link><guid isPermaLink="true">https://forum.qt.io/post/728867</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 15 Sep 2022 14:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to More xterm in MDI example challenge on Thu, 15 Sep 2022 14:18:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a> You are addressing tow differtt issues . I think I can get the sizing udder my control using xterm -geometry option.<br />
Secondly - as you  said - he command output goes to QTextEdit  object , hence it should not be that hard to work on.<br />
I have another post kinda of addressing that... sometime it is hard to keep stuff  "under one roof".</p>
]]></description><link>https://forum.qt.io/post/728861</link><guid isPermaLink="true">https://forum.qt.io/post/728861</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Thu, 15 Sep 2022 14:18:03 GMT</pubDate></item><item><title><![CDATA[Reply to More xterm in MDI example challenge on Thu, 15 Sep 2022 09:11:36 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch said in <a href="/post/728776">More xterm in MDI example challenge</a>:</p>
<blockquote>
<p dir="auto">Resizing this sub window to the current size DID NOT resize the original.</p>
</blockquote>
<p dir="auto">Correct.  I do not know of any way to tell a <em>running</em> <code>xterm</code> to change its size.</p>
<blockquote>
<p dir="auto">I am looking at the params item  QString::number(winId()) which tells the xterm "where to write (window) "  the command output.<br />
Should  I be able to access that window and copy its contents to expanded  subwindow ?</p>
</blockquote>
<p dir="auto">No.  As I advised you previously, so long as you use <code>xterm -into</code> you will not be able to access its output programatically from your code, it will be sent to the widget directly from the <code>xterm</code>.  The full story can be read at e.g. <a href="https://stackoverflow.com/a/14772227/489865" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/a/14772227/489865</a>, which explains what would be necessary if you <em>did</em> want to <em>try</em> accessing its output, and as you can see would require pretty hefty coding just to try out.</p>
]]></description><link>https://forum.qt.io/post/728811</link><guid isPermaLink="true">https://forum.qt.io/post/728811</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 15 Sep 2022 09:11:36 GMT</pubDate></item></channel></rss>