How can I make a QLineEdit suitable for entering passwords (i.e. it doesn't show what's entered), something like the follwing:

setEchoMode (Documentation) for your object.
Example code:
ui->lineEditPassword->setEchoMode(QLineEdit::Password); You can do it from Qt Designer:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With