0.5.1: il campo Password nelle Impostazioni mostra/nasconde il testo (PasswordField + showEchoModeToggle)

This commit is contained in:
2026-10-05 14:42:20 +02:00
parent e0347c8051
commit 218ea4b424
3 changed files with 10 additions and 5 deletions
+3 -2
View File
@@ -43,13 +43,14 @@ Page {
onTextChanged: appSettings.username = text
}
TextField {
PasswordField {
id: passField
anchors.left: parent.left
anchors.right: parent.right
label: qsTr("Password")
text: appSettings.password
echoMode: TextInput.Password
// Icona nativa per mostrare/nascondere il testo digitato
showEchoModeToggle: true
onTextChanged: appSettings.password = text
}