Results 1 to 7 of 7

Thread: Can we save & load the settings in GUI !

  1. #1
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Can we save & load the settings in GUI !

    Hello! Friends,
    I have designed a GUI from where i get number of inputs say from QLineEdit and all.
    Now what i want to do is to save the settings done by the user, say save all the selected values in a file and when user again wants to get the same output as before he can just load the settings from that file.

    Is this possible? If yes can anyone please help me out in this.

    I will be grateful Thanks in advance.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Can we save & load the settings in GUI !

    See QSettings.

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

    Krish (26th March 2008)

  4. #3
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Can we save & load the settings in GUI !

    Hello! Marcel,
    Thanks for taking out time & suggesting me that, in the beginning it was not working but i managed to make it run.

    Thanks again.
    Best Regards.
    Last edited by Krish; 26th March 2008 at 13:55.

  5. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Can we save & load the settings in GUI !

    Is it a pointer or is it an object?
    J-P Nurmi

  6. #5
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Can we save & load the settings in GUI !

    Hello! Jpn Sir,
    Thanks for taking out time & replying. It is a pointer. But i managed to solve the problem somehow.

    Thanks & Best Regards.

  7. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Can we save & load the settings in GUI !

    Quote Originally Posted by Krish View Post
    It is a pointer.
    So you should use it like a pointer, not like an object.

    But i managed to solve the problem somehow.
    Somehow? You don't know how?

    Please, DO NOT delete code snippets and error messages in your posts after solving the problem. The purpose of this forum is to serve as a huge knowledge base. Threads lose their value if content was deleted right after solving problems.
    J-P Nurmi

  8. #7
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Can we save & load the settings in GUI !

    Hello! Jpn Sir,
    I am sorry sir for that, but as i saw that i didn't receive any response for that post till i had solved the problem, i deleted it as it was of no use. And when i uploaded the edited post then i saw your reply for that post.

    Sir you can check the posting time of that reply i.e. 14:18 and its editing time " Last edited by Krish : Today at 14:55." which coincides with your reply.

    Yes sir for sure I know how i solved it. By somehow i meant by trying few things. I was making mistake in using it properly in the slot.

    Anyway Sorry again and thanks for helping.

    Best Regards
    Last edited by Krish; 26th March 2008 at 15:50.

Similar Threads

  1. QWidget Settings advanced idea
    By MarkoSan in forum Qt Programming
    Replies: 9
    Last Post: 27th March 2008, 09:41
  2. Program not compiling on Fresh install of Leopard
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 10:22
  3. What does "Save All" actually save?
    By Mariane in forum Newbie
    Replies: 7
    Last Post: 31st January 2006, 13:23

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.