<?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[QLabel Value, Not Text()]]></title><description><![CDATA[<p dir="auto">What you see on the label is text. What can I use to use the real value rather than the apparent value due to the text elide?</p>
]]></description><link>https://forum.qt.io/topic/120866/qlabel-value-not-text</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 19:09:32 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/120866.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Nov 2020 03:00:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QLabel Value, Not Text() on Mon, 16 Nov 2020 08:55:32 GMT]]></title><description><![CDATA[<p dir="auto">@J-Hilk said in <a href="/post/627482">QLabel Value, Not Text()</a>:</p>
<blockquote>
<p dir="auto">@Qt-Jo-Ha <a class="plugin-mentions-user plugin-mentions-a" href="/user/kent-dorfman">@<bdi>Kent-Dorfman</bdi></a> 's approach is the more robust one for sure!<br />
But Qt offers alternatives for you to use, that take a QString and turn it into a number. This should work good enough, if your text is a simple number representation.</p>
<p dir="auto"><a href="https://doc.qt.io/qt-5/qstring.html#toDouble" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qstring.html#toDouble</a><br />
<a href="https://doc.qt.io/qt-5/qstring.html#toInt" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qstring.html#toInt</a><br />
etc..</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kent-dorfman">@<bdi>Kent-Dorfman</bdi></a>  @J-Hilk</p>
<p dir="auto">Thank you all for the answers. It was very helpful.</p>
]]></description><link>https://forum.qt.io/post/627504</link><guid isPermaLink="true">https://forum.qt.io/post/627504</guid><dc:creator><![CDATA[Qt.Jo.Ha]]></dc:creator><pubDate>Mon, 16 Nov 2020 08:55:32 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel Value, Not Text() on Mon, 16 Nov 2020 07:06:50 GMT]]></title><description><![CDATA[<p dir="auto">@Qt-Jo-Ha <a class="plugin-mentions-user plugin-mentions-a" href="/user/kent-dorfman">@<bdi>Kent-Dorfman</bdi></a> 's approach is the more robust one for sure!<br />
But Qt offers alternatives for you to use, that take a QString and turn it into a number. This should work good enough, if your text is a simple number representation.</p>
<p dir="auto"><a href="https://doc.qt.io/qt-5/qstring.html#toDouble" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qstring.html#toDouble</a><br />
<a href="https://doc.qt.io/qt-5/qstring.html#toInt" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qstring.html#toInt</a><br />
etc..</p>
]]></description><link>https://forum.qt.io/post/627482</link><guid isPermaLink="true">https://forum.qt.io/post/627482</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Mon, 16 Nov 2020 07:06:50 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel Value, Not Text() on Mon, 16 Nov 2020 05:40:36 GMT]]></title><description><![CDATA[<p dir="auto">subclass it and add a field that contains the desired information in whatever type you decide...understanding that there is no implicit link between the text() and your utility field.</p>
]]></description><link>https://forum.qt.io/post/627474</link><guid isPermaLink="true">https://forum.qt.io/post/627474</guid><dc:creator><![CDATA[Kent-Dorfman]]></dc:creator><pubDate>Mon, 16 Nov 2020 05:40:36 GMT</pubDate></item></channel></rss>