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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -