import QtQuick 2.9 import QtQuick.Window 2.2 import QtQuick.Controls 2.2 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") TextField { id : first placeholderText: qsTr("Enter name") passwordCharacter : "*" echoMode : TextInput.Normal } TextField { id : second anchors.top : first.bottom placeholderText: qsTr("Enter name") passwordCharacter : "*" echoMode : TextInput.Password } TextField { id : third anchors.top : second.bottom placeholderText: qsTr("Enter name") echoMode : TextInput.PasswordEchoOnEdit inputMethodHints: Qt.ImhHiddenText } TextField { anchors.top : third.bottom placeholderText: qsTr("Enter name") passwordCharacter : "*" echoMode : TextInput.NoEcho } }