<?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 placeholderText not shown when setting inputMask]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have just found that if I set inputMask property ,placeholderText is not shown.<br />
placeholderText: qsTr("input your key here.")<br />
inputMask: "99999"</p>
<p dir="auto">What is the problem?</p>
]]></description><link>https://forum.qt.io/topic/62453/textfield-placeholdertext-not-shown-when-setting-inputmask</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 18:00:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/62453.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Jan 2016 09:22:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TextField placeholderText not shown when setting inputMask on Sat, 09 Jan 2016 03:16:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/charby">@<bdi>Charby</bdi></a><br />
But I have set "Component.onCompleted: textfield.forceActiveFocus()" in parent compoment.</p>
]]></description><link>https://forum.qt.io/post/306338</link><guid isPermaLink="true">https://forum.qt.io/post/306338</guid><dc:creator><![CDATA[Mr Pang]]></dc:creator><pubDate>Sat, 09 Jan 2016 03:16:15 GMT</pubDate></item><item><title><![CDATA[Reply to TextField placeholderText not shown when setting inputMask on Fri, 08 Jan 2016 11:16:56 GMT]]></title><description><![CDATA[<p dir="auto">It seems the placeHolderText is conflicting with the inputMast.<br />
I never encountered this problem as I always use a home made text input with a dedicated Text qml item for the placeholder.</p>
<p dir="auto">If you want to stick with TextField, you think this work-around could match your need...</p>
<pre><code>TextField{
        placeholderText: qsTr("input your key here.")
        onActiveFocusChanged:{
            inputMask="99999"
    }
</code></pre>
]]></description><link>https://forum.qt.io/post/306229</link><guid isPermaLink="true">https://forum.qt.io/post/306229</guid><dc:creator><![CDATA[Charby]]></dc:creator><pubDate>Fri, 08 Jan 2016 11:16:56 GMT</pubDate></item></channel></rss>