Results 1 to 6 of 6

Thread: Delayed Password Masking

  1. #1

    Default Delayed Password Masking

    Hi everybody,
    I would really appreciate your help.

    I need to have delayed password masking in my application for the login screen. This means that my password field (QLineEdit) shoud mask all entered characters with a certain delay (passwords get masked while typing but the last character in row is shown)

    All suggestions appreciated!
    Thanks in advance,
    Branko

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Delayed Password Masking

    Subclass QLineEdit, fetch the key press (QLineEdit::keyPressEvent()), "encrypt" the last input, append the just entered letter plain, start a timer and after the timer expires also crypt the inserted letter... No big deal

  3. #3

    Default Re: Delayed Password Masking

    Hi Lykurg,

    Thank you very much for answering my email. Yes, this sounds like a correct approach and I thought to do it that way, but I have had no idea how to deal with adding/deleting characters from the beginning or somewhere from the middle of my password field. That’s why I thought there might a Qt built-in solution for this type of password entry, but obviously there is no one. Do you have any suggestions regarding this issue (adding/deleting characters from the middle)?

    Best regards,
    Branko

  4. #4

    Default Re: Delayed Password Masking

    Maybe there is no need to support adding/deleting characters from the middle

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Delayed Password Masking

    Quote Originally Posted by branko View Post
    Maybe there is no need to support adding/deleting characters from the middle
    Yes, its unlikely that somone add a charakter anywhere inside "*****************". I guess, but in case one could use cursorPosition() to determinate the position where to enter the charakter.

  6. #6

    Default Re: Delayed Password Masking

    Thank you very much! I'll do it this way if necessary. I really appreciate your help, thanks a lot!

Similar Threads

  1. Intense Masking....
    By been_1990 in forum Qt Programming
    Replies: 20
    Last Post: 30th April 2009, 16:03
  2. Signals are delayed on X11?
    By Cruz in forum Qt Programming
    Replies: 13
    Last Post: 18th February 2009, 12:59
  3. Issue with masking QWidgets
    By JimDaniel in forum Qt Programming
    Replies: 6
    Last Post: 2nd November 2007, 19:23
  4. Both Qt 4 books delayed?
    By brcain in forum General Discussion
    Replies: 32
    Last Post: 24th January 2007, 02:42
  5. Masking password
    By Lebowski in forum Qt Tools
    Replies: 3
    Last Post: 14th April 2006, 11:17

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.