Mihai
Mihai

Reputation: 389

How can I change Qml TextField echoMode Password displayed asterisks?

How can I change Qml TextField echoMode Password displayed asterisks with another char?

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

Upvotes: 2

Views: 5838

Answers (1)

Mark Ch
Mark Ch

Reputation: 3030

Set the passwordCharacter property. It is a property of TextInput, but inherited by TextField.

Upvotes: 7

Related Questions