qt - QML: TextField horizontalAlignment not working for entered text in Ubuntu SDK -
i'm complete newbie qml , qt, forgive me if trivial question.
i'm using following code center-align text in textfield. work placeholder text, entered text isn't center-aligned.
haven't been able figure out i'm missing. :(
textfield { id: pwdtf x: 52 y: 190 z: 6 color: ubuntucolors.lightaubergine visible: true placeholdertext: "<font color=\"lightsteelblue\">enter password #</font>" horizontalalignment: textinput.alignhcenter echomode: textinput.password }
set width
property. horizontalalignment
doesn't work without it.
Comments
Post a Comment