Results 1 to 2 of 2

Thread: QLineEdit Password Echo Mode - Displaying Asteriks Characters in Fixed Length

  1. #1
    Join Date
    Feb 2015
    Posts
    6
    Qt products
    Qt4

    Default QLineEdit Password Echo Mode - Displaying Asteriks Characters in Fixed Length

    Hi,
    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 ?

  2. #2
    Join Date
    Jun 2015
    Location
    India
    Posts
    185
    Thanks
    8
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QLineEdit Password Echo Mode - Displaying Asteriks Characters in Fixed Length

    Why you want to do this. Its not user friendly right..
    Is there a use case of it..
    Last edited by prasad_N; 6th September 2015 at 13:34.

Similar Threads

  1. QLineEdit::Password mode not working on touch LCD , connected to ARM board.
    By savaliya_ambani in forum Qt for Embedded and Mobile
    Replies: 14
    Last Post: 21st August 2013, 06:56
  2. making password characters turn into dots
    By Lephaswi in forum Newbie
    Replies: 1
    Last Post: 29th April 2011, 21:03
  3. Use QLineEdit as password field
    By lyhoanghai in forum Qt Programming
    Replies: 9
    Last Post: 27th October 2010, 14:53
  4. Replies: 2
    Last Post: 21st August 2010, 11:26
  5. Echo mode Password
    By rk0747 in forum Qt Programming
    Replies: 2
    Last Post: 5th July 2010, 09:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.