Reputation: 559
How can I make a QLineEdit
suitable for entering passwords (i.e. it doesn't show what's entered), something like the follwing:
Upvotes: 33
Views: 48026
Reputation: 6680
setEchoMode
(Documentation) for your object.
Example code:
ui->lineEditPassword->setEchoMode(QLineEdit::Password);
You can do it from Qt Designer:
Upvotes: 87