Results 1 to 3 of 3

Thread: retain value of qlineedit for next execution

  1. #1
    Join Date
    Aug 2012
    Posts
    19
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default retain value of qlineedit for next execution

    Hi,
    I have created a simple login form . I want give user a option of selecting previously used ID upon his next vist.

    • Consider I open the login form and enter "XYZ" in userid box. It will take me to next form upon providing correct credentials. I will close application.
    • When I reopen it should give me previously entered user id i.e xyz in userid textbox. Please guide me in achieving this.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: retain value of qlineedit for next execution

    Read about QSettings.

  3. The following user says thank you to Lesiok for this useful post:

    decipher (29th January 2013)

  4. #3
    Join Date
    Aug 2012
    Posts
    19
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: retain value of qlineedit for next execution

    thanks..used the following link...
    http://qt-project.org/wiki/How_to_Use_QSettings

Similar Threads

  1. Replies: 2
    Last Post: 19th March 2012, 14:04
  2. Replies: 12
    Last Post: 27th March 2011, 07:14
  3. Replies: 1
    Last Post: 12th October 2010, 22:20
  4. Replies: 1
    Last Post: 5th October 2010, 17:08
  5. Replies: 1
    Last Post: 21st March 2006, 12:54

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.