PDA

View Full Version : Saving content of a QLineEdit



Alex22
3rd December 2015, 10:48
Hi

There is a QLineEdit object in my project. I want after running .exe file of my project and writing some text in LineEdit, this text be saved. So after closing .exe file and opening again that, the text be showed.

Thanks for any help.

^NyAw^
3rd December 2015, 10:51
Hi,

You can use QSettings with INI format.

Alex22
3rd December 2015, 12:30
Hi,

You can use QSettings with INI format.

Thanks for your answer NyAw,
please give me a simple example.

^NyAw^
3rd December 2015, 12:38
Hi,

First take a look at documentation and then try it. If you have problems then you can provide your sample code to let us help you.