Results 1 to 9 of 9

Thread: QSettings rewriting the .ini file, so not able to restore the values

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2013
    Location
    Bangalore
    Posts
    49
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4

    Default Re: QSettings rewriting the .ini file, so not able to restore the values

    There is something wrong with my Environment I think, It's working as expected on another SLES machine, sorry for that and thanks for the effort.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: QSettings rewriting the .ini file, so not able to restore the values

    Another possibility is that your code constructs two Window objects (deliberately or not), one is actively used, the other is dormant so keeps the originally loaded list, and the last one to be destroyed wins. Stick a breakpoint/qDebug() in the destructor to see how many objects of this class are destroyed as you leave the program.

Similar Threads

  1. Replies: 9
    Last Post: 15th October 2013, 06:59
  2. using QSettings to read an ini file
    By gye325 in forum Qt Programming
    Replies: 16
    Last Post: 2nd September 2011, 23:07
  3. Replies: 3
    Last Post: 26th July 2011, 17:59
  4. How to use QSettings to read INI file
    By Cantora in forum Newbie
    Replies: 8
    Last Post: 16th June 2011, 08:14
  5. Using QSettings to read pre-made INI file..
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 3rd May 2007, 05:36

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
  •  
Qt is a trademark of The Qt Company.