import QtQuick 2.0 Rectangle { id: root width: 400 height: 200 Grid { anchors.centerIn: parent columns: 2 spacing: 10 Text { text: "Password entry:" } TextInput { width : 300 id: password echoMode: TextInput.Password } Text { text: "Password echo:" } Text { width : 300 id: passwordEcho text: password.text } Text { text: "Text entry1:" } TextInput { width : 300 id: normal1 } Text { text: "Text entry2:" } TextInput { width : 300 id: normal2 } } }