I am using PyQt4 QLineEdit widget to accept password. There is a setMasking property, but not following how to set the masking character.<
PyQt4
QLineEdit
setMasking
Select the line edit, and in the Property Editor window, there will be a property echoMode which you can set to Password.
echoMode
Password
In this case, Anti Earth's answer will work which is:
myLineEdit.setEchoMode(QLineEdit.Password)