<?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[Which output (display) widget are available.]]></title><description><![CDATA[<p dir="auto">Hi,<br />
sorry to ask a really simple question: but what if I want to <em>display</em> in a widget a float number produced in my code?<br />
The only thing I find for this is a LCD_display that i don't like much.<br />
Is not there something like a QtLineEdit (same fonts) that does not accept<br />
mouse focus, or keystrokes? (maybe with a grayed out background, but not essential)<br />
Thank you!<br />
I use QtCreator 2.5.2, Qt version is 4.8.6, last one that works in Scientific Linux 6. Going forward from this is quite painful because of upgrading gcc.</p>
]]></description><link>https://forum.qt.io/topic/69545/which-output-display-widget-are-available</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 14:44:39 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/69545.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Jul 2016 13:14:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Which output (display) widget are available. on Fri, 22 Jul 2016 13:43:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/acalcaterra">@<bdi>ACalcaterra</bdi></a><br />
Hello,<br />
You probably want <code>QLabel</code>. It's simplistic, but it's the simplest display widget out there. You can also use a <code>QLineEdit</code> that has its <code>readOnly</code> property set.</p>
<p dir="auto">Kind regards.</p>
]]></description><link>https://forum.qt.io/post/338941</link><guid isPermaLink="true">https://forum.qt.io/post/338941</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Fri, 22 Jul 2016 13:43:03 GMT</pubDate></item><item><title><![CDATA[Reply to Which output (display) widget are available. on Fri, 22 Jul 2016 13:39:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/acalcaterra">@<bdi>ACalcaterra</bdi></a> If your just want to show the value, take a <code>QLabel</code> and format the float value as string.</p>
<pre><code>QLabel *myLabel = new QLabel(this);
myLayout-&gt;addWidget(myLabel);
myLabel-&gt;setText(QString::number(myFloat, 'f', 2));
</code></pre>
]]></description><link>https://forum.qt.io/post/338940</link><guid isPermaLink="true">https://forum.qt.io/post/338940</guid><dc:creator><![CDATA[micland]]></dc:creator><pubDate>Fri, 22 Jul 2016 13:39:02 GMT</pubDate></item></channel></rss>