<?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 word wrap minimum width inconsistent]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm new to Qt development. I'm trying to display a list of name-value pairs. Each pair is input into 2 QLables separately, which are all in a QGridLayout. What I noticed is that when wordWrap is enabled, QLabel's minimum width is different depending the length of its text.</p>
<p dir="auto">Has anyone else run into this issue? Is there way to set a consistent minimum width for every QLabels?</p>
<p dir="auto">Thanks,<br />
Lin</p>
]]></description><link>https://forum.qt.io/topic/128297/qlabel-word-wrap-minimum-width-inconsistent</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 14:06:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/128297.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Jul 2021 21:38:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QLabel word wrap minimum width inconsistent on Thu, 08 Jul 2021 07:34:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
We also talked aout word wrap here.</p>
<p dir="auto"><a href="https://forum.qt.io/topic/128286/qlabel-with-wordwrap-fixed-vertical-policy-and-stretched-for-the-whole-qdialog-s-width-fails-to-resize-height/9">https://forum.qt.io/topic/128286/qlabel-with-wordwrap-fixed-vertical-policy-and-stretched-for-the-whole-qdialog-s-width-fails-to-resize-height/9</a></p>
<p dir="auto">In any case, why simply not use a tableWidget ?<br />
Instead of a lot of labels in a layout ?</p>
]]></description><link>https://forum.qt.io/post/669564</link><guid isPermaLink="true">https://forum.qt.io/post/669564</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Thu, 08 Jul 2021 07:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to QLabel word wrap minimum width inconsistent on Thu, 08 Jul 2021 03:05:44 GMT]]></title><description><![CDATA[<p dir="auto">You can look into: <a href="https://doc.qt.io/qt-5/qgridlayout.html#setColumnMinimumWidth" target="_blank" rel="noopener noreferrer nofollow ugc">setColumnMinimumWidth</a>. It's not a perfect answer, but it might be enough for you.</p>
]]></description><link>https://forum.qt.io/post/669528</link><guid isPermaLink="true">https://forum.qt.io/post/669528</guid><dc:creator><![CDATA[mzimmers]]></dc:creator><pubDate>Thu, 08 Jul 2021 03:05:44 GMT</pubDate></item></channel></rss>