qml example: TextInput with echoMode |
import QtQuick 2.0 Rectangle { width: 360 height: 360 Text { id: text1 anchors.top: parent.top anchors.topMargin: 5 text: "Hello World" } TextInput { id: text_default anchors.top: text1.bottom width: parent.width anchors.topMargin: 5 onAccepted: text1.text = text } TextInput { id: text_Password echoMode: TextInput.Password anchors.top: text_default.bottom width: parent.width anchors.topMargin: 5 onAccepted: text1.text = text } TextInput { id: text_NoEcho echoMode: TextInput.NoEcho anchors.top: text_Password.bottom width: parent.width anchors.topMargin: 5 onAccepted: text1.text = text } TextInput { id: text_PasswordEchoOnEdit echoMode: TextInput.PasswordEchoOnEdit anchors.top: text_NoEcho.bottom width: parent.width anchors.topMargin: 5 onAccepted: text1.text = text } }