How can I make a QLineEdit
suitable for entering passwords (i.e. it doesn't show what's entered), something like the follwing:
Using QLineEdit for passwords
setEchoMode
(Documentation) for your object.
Example code:
ui->lineEditPassword->setEchoMode(QLineEdit::Password);
You can do it from Qt Designer:
© 2022 - 2024 — McMap. All rights reserved.