<?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 text with embedded ellipsis]]></title><description><![CDATA[<p dir="auto">I have a Windows dlg that displays like this:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/289ac3d5-9652-431c-b228-8f62077c7927.png" alt="d7727b65-c387-4af6-8299-1f099a5263a0-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I want my Qt based dlg to break the long path in the first line with an embedded ellipsis just like the windows dlg, but I get this:</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/95e6dcce-425b-4a8a-bcee-43db93ddf665.png" alt="4854b7e4-5710-4fd6-bb91-6401ed75d495-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">How can I persuade the QLabel to do that?</p>
<p dir="auto">Thanks<br />
David</p>
]]></description><link>https://forum.qt.io/topic/143711/qlabel-text-with-embedded-ellipsis</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 19:27:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/143711.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Mar 2023 19:34:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QLabel text with embedded ellipsis on Sat, 18 Mar 2023 10:59:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> Because sometimes we think that the basic framework should provide a function and are surprised when it doesn't.</p>
<p dir="auto">Furthermore we are often under time pressure, and don't always know how best to handle stuff</p>
<p dir="auto">Sure given time and resources we can write what's needed, but sometimes we hope that it is there for the taking!</p>
]]></description><link>https://forum.qt.io/post/751462</link><guid isPermaLink="true">https://forum.qt.io/post/751462</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Sat, 18 Mar 2023 10:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel text with embedded ellipsis on Sat, 18 Mar 2023 09:14:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/perdrix">@<bdi>Perdrix</bdi></a> said in <a href="/post/751453">QLabel text with embedded ellipsis</a>:</p>
<blockquote>
<p dir="auto">That code placed an ellipsis at the end rather than placing it at a sensible location in the middle.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<blockquote>
<p dir="auto">You can look for inspiration</p>
</blockquote>
<p dir="auto">Why do people who call themself programmers expect that they can copy and paste everything from everywhere an it works out of the box...</p>
]]></description><link>https://forum.qt.io/post/751455</link><guid isPermaLink="true">https://forum.qt.io/post/751455</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sat, 18 Mar 2023 09:14:11 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel text with embedded ellipsis on Sat, 18 Mar 2023 09:03:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> That code placed an ellipsis at the end rather than placing it at a sensible location in the middle.</p>
<p dir="auto">Now that I have looked at it again more carefully I now think I it will be fairly simple to change it to place the elision point in the middle.</p>
]]></description><link>https://forum.qt.io/post/751453</link><guid isPermaLink="true">https://forum.qt.io/post/751453</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Sat, 18 Mar 2023 09:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel text with embedded ellipsis on Fri, 17 Mar 2023 20:28:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/perdrix">@<bdi>Perdrix</bdi></a> said in <a href="/post/751435">QLabel text with embedded ellipsis</a>:</p>
<blockquote>
<p dir="auto">but that is not a good solution</p>
</blockquote>
<p dir="auto">Why? You wanted an elipsis, the example shows you how to do so, so why is this not a good solution?</p>
]]></description><link>https://forum.qt.io/post/751436</link><guid isPermaLink="true">https://forum.qt.io/post/751436</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 17 Mar 2023 20:28:23 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel text with embedded ellipsis on Fri, 17 Mar 2023 20:22:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> No disrespect to you, but that is not a good solution</p>
]]></description><link>https://forum.qt.io/post/751435</link><guid isPermaLink="true">https://forum.qt.io/post/751435</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Fri, 17 Mar 2023 20:22:05 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel text with embedded ellipsis on Fri, 17 Mar 2023 19:37:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You can look for inspiration in the <a href="https://doc.qt.io/qt-6/qtwidgets-widgets-elidedlabel-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">Elided Label Example</a>.</p>
]]></description><link>https://forum.qt.io/post/751432</link><guid isPermaLink="true">https://forum.qt.io/post/751432</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 17 Mar 2023 19:37:49 GMT</pubDate></item></channel></rss>