Unsolved TextField placeholderText not shown when setting inputMask
-
Hi,
I have just found that if I set inputMask property ,placeholderText is not shown.
placeholderText: qsTr("input your key here.")
inputMask: "99999"What is the problem?
-
It seems the placeHolderText is conflicting with the inputMast.
I never encountered this problem as I always use a home made text input with a dedicated Text qml item for the placeholder.If you want to stick with TextField, you think this work-around could match your need...
TextField{ placeholderText: qsTr("input your key here.") onActiveFocusChanged:{ inputMask="99999" }
-
@Charby
But I have set "Component.onCompleted: textfield.forceActiveFocus()" in parent compoment.