<?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[Aligning the text for a text label with the text in a QLineEdit]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<p dir="auto">Title pretty much says it. I have a QLineEdit above a text label in a form layout. I am currently using a fixed pitch font and I would like the text in the text label to be aligned with the text in the QLineEdit.</p>
<p dir="auto">I have been trying to do this for a few days now to no avail. Would anyone have any ideas on how I can accomplish this?</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.qt.io/topic/104880/aligning-the-text-for-a-text-label-with-the-text-in-a-qlineedit</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 17:46:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/104880.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Jul 2019 18:35:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Aligning the text for a text label with the text in a QLineEdit on Tue, 16 Jul 2019 18:17:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<p dir="auto">Thank you for your advice. I ended up placing the label into a container and adjusting the left margin padding. Set the value to 4 and everything appears to be lining up nicely. Thank you all for everything</p>
]]></description><link>https://forum.qt.io/post/541109</link><guid isPermaLink="true">https://forum.qt.io/post/541109</guid><dc:creator><![CDATA[Omni_Philm]]></dc:creator><pubDate>Tue, 16 Jul 2019 18:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to Aligning the text for a text label with the text in a QLineEdit on Fri, 12 Jul 2019 05:06:09 GMT]]></title><description><![CDATA[<p dir="auto">playing with a container for QLabel and setting padding as <a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> said is the most direct solution but you could of course also write your own custom QLabel widget that paints the text bitmap whereever you want it inside the custom widget.</p>
]]></description><link>https://forum.qt.io/post/540410</link><guid isPermaLink="true">https://forum.qt.io/post/540410</guid><dc:creator><![CDATA[Kent-Dorfman]]></dc:creator><pubDate>Fri, 12 Jul 2019 05:06:09 GMT</pubDate></item><item><title><![CDATA[Reply to Aligning the text for a text label with the text in a QLineEdit on Thu, 11 Jul 2019 19:01:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
What is wrong the things you tried?<br />
Seems only a pixel or so.<br />
<img src="http://imagizer.imageshack.com/img924/3310/7RnDD7.png" alt="alt text" class=" img-fluid img-markdown" /><br />
if you apply frame, its very close<br />
<img src="http://imagizer.imageshack.com/img922/6046/WF5mR3.png" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/540366</link><guid isPermaLink="true">https://forum.qt.io/post/540366</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Thu, 11 Jul 2019 19:01:32 GMT</pubDate></item></channel></rss>