如何更改Qml TextField echoMode密码显示的星号?

时间:2017-06-22 06:14:03

标签: qt qml textfield

如何使用另一个char更改Qml TextField echoMode密码显示的星号?

TextField {
    id: textId
    anchors.fill: parent
    font {
        pixelSize: 20
    }
    echoMode: TextInput.PasswordEchoOnEdit
}

1 个答案:

答案 0 :(得分:3)

设置passwordCharacter属性。它是TextInput的属性,但由TextField继承。