<?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[TextField placeHolder alignment when text align is center]]></title><description><![CDATA[<p dir="auto">Hi,<br />
<img src="https://ddgobkiprc33d.cloudfront.net/dfe62dd5-2d1b-4bbb-8425-7dece066bd73.png" alt="Screen Shot 2023-05-20 at 3.36.48 PM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I have problem with placeHolder alignment when text horizontalAlignemnt is when Qt.AlignHCenter.</p>
<p dir="auto">What's the problem?</p>
]]></description><link>https://forum.qt.io/topic/145247/textfield-placeholder-alignment-when-text-align-is-center</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 08:56:15 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145247.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 May 2023 12:12:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TextField placeHolder alignment when text align is center on Sun, 28 May 2023 14:13:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bob64">@<bdi>Bob64</bdi></a></p>
<pre><code>import QtQuick
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Controls.Material 2.15


ApplicationWindow {
    width: 600
    height: 480
    visible: true
    title: qsTr("App Links Test")

    Material.theme: Material.Dark

    ColumnLayout {
        anchors.centerIn: parent
        width: 500

        TextField {
            placeholderText: "Defult horizontalAlignment"
            Layout.fillWidth: true
        }


        TextField {
            placeholderText: "horizontalAlignment: Qt.AlignHCenter"
            Layout.fillWidth: true

            horizontalAlignment: Qt.AlignHCenter
        }

        TextField {
            placeholderText: "horizontalAlignment: Qt.AlignLeft"
            Layout.fillWidth: true

            horizontalAlignment: Qt.AlignLeft
        }


        TextField {
            placeholderText: "horizontalAlignment: Qt.AlignRight"
            Layout.fillWidth: true

            horizontalAlignment: Qt.AlignRight
        }
    }


}
</code></pre>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/95bdf68c-f65f-471d-839c-b62801a5a1b5.png" alt="Screen Shot 2023-05-28 at 5.34.47 PM.png" class=" img-fluid img-markdown" /><br />
<img src="https://ddgobkiprc33d.cloudfront.net/bc7965ed-f97b-4918-b426-814f5c0f5f28.png" alt="Screen Shot 2023-05-28 at 5.34.38 PM.png" class=" img-fluid img-markdown" /><br />
<img src="https://ddgobkiprc33d.cloudfront.net/5fe76b84-f521-40a3-847f-45a710d8c861.png" alt="Screen Shot 2023-05-28 at 5.34.43 PM.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/759655</link><guid isPermaLink="true">https://forum.qt.io/post/759655</guid><dc:creator><![CDATA[Mohammad Sherafat]]></dc:creator><pubDate>Sun, 28 May 2023 14:13:28 GMT</pubDate></item><item><title><![CDATA[Reply to TextField placeHolder alignment when text align is center on Mon, 22 May 2023 10:02:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mohammad-sherafat">@<bdi>Mohammad-Sherafat</bdi></a> That looks horizontally aligned to me. Why do you think there is a problem?</p>
<p dir="auto">Also, if you can explain what you see the problem to be, you will probably need to show some code in order for anyone to help.</p>
]]></description><link>https://forum.qt.io/post/758942</link><guid isPermaLink="true">https://forum.qt.io/post/758942</guid><dc:creator><![CDATA[Bob64]]></dc:creator><pubDate>Mon, 22 May 2023 10:02:38 GMT</pubDate></item></channel></rss>