Qt的QLineEdit显示密码

ui->lineEdit->setEchoMode( QLineEdit::Password );

原文地址:https://www.cnblogs.com/Jim-william/p/5004729.html