PDA

View Full Version : retain value of qlineedit for next execution



decipher
28th January 2013, 07:16
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.

Lesiok
28th January 2013, 08:02
Read about QSettings.

decipher
29th January 2013, 08:54
thanks..used the following link...
http://qt-project.org/wiki/How_to_Use_QSettings