Results 1 to 10 of 10

Thread: Use QLineEdit as password field

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo
    Thanks
    4
    Wiki edits
    9

    Default Re: Use QLineEdit as password field

    Hello,

    If I remove line 2, QLineEdit does not mask the password anymore. All password are displayed when user inputs them
    If I swap line 2 and line 3, the result is not changed. QLineEdit still has "predictive text" feature.

    Hai

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Use QLineEdit as password field

    It seems that Qt hints the firmware it wants to hide the text (as this is what line #3 does) but the hint gets ignored. I don't know if you can overcome this problem without subclassing QLineEdit. You can try using style-sheets instead of line #2 to ask the widget to use a different echo character but I don't know if it will work without setting the widget to password mode.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 21st August 2010, 10:26
  2. QHttp get AND get field
    By TomASS in forum Newbie
    Replies: 0
    Last Post: 10th November 2009, 21:45
  3. QuaZIP and Password?
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2008, 09:10
  4. password authentication with QsslSocket
    By mate in forum Qt Programming
    Replies: 2
    Last Post: 16th July 2008, 08:17
  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
  •  
Qt is a trademark of The Qt Company.