How to make an input password in PyQt4?

4

To use a field similar to input of HTML in Pyqt4, I usually use QtGui.QLineEdit .

But how do I make a field similar to input password, what is a specific field for entering passwords?

Can you define the "asterisks" that hide the text entered in QLineEdit itself, or do you have a specific one?

    
asked by anonymous 26.10.2016 / 21:12

1 answer

4

Use setEchoMode passing as enum QLineEdit.Password or QLineEdit.PasswordEchoOnEdit

26.10.2016 / 21:17