
Originally Posted by
Lebowski
...
The result is that user is typing his password and window displays just ********* instead of actual password. Any ideas how to do that?
You can use QInputDialog::getText().
The 3rd argument is echoMode of type QLineEdit::EchoMode, possible values are
- QLineEdit::Normal
- QLineEdit::NoEcho
- QLineEdit::Password
You can write
QString password = QInputDialog::getText("Hello", "Insert your password", QLineEdit::Password);
To copy to clipboard, switch view to plain text mode
Bookmarks