PDA

View Full Version : How to display * in QPlainEditText???



phillip_Qt
4th November 2009, 10:00
Hi All
I would like to write a dialog asking the user for a username and password. for password i'm using QPlainTextEdit. i want to showing "stars" instead of the typed letters. how to do so. Plz help.

Lykurg
4th November 2009, 10:08
Is there any particular/very good reason why you are using a text edit for password? Use QLineEdit and set the echo mode.

caduel
4th November 2009, 10:08
a multiline password, right... :o

better use QLineEdit and see QLineEdit::EchoMode