View Full Version : QLineEdit Password Echo Mode - Displaying Asteriks Characters in Fixed Length

2nd September 2015, 14:19
I would like to display entered text in QLineEdit. The input mode is password, so I wanna display ****** ( 6 asteriks character length ) while the input text is longer. As far as I learned, displayText named event returns asteriks character in entered text lentgh. Is there a way of displaying fixed lentgh asteriks key independent from text length, or should I display it by giving QString("******") manually ?

6th September 2015, 11:09
Why you want to do this. Its not user friendly right..
Is there a use case of it..