Results 1 to 2 of 2

Thread: Keep CheckBoxs' value be kept into the .conf file - QSettings Problem

  1. #1
    Join Date
    Jul 2010
    Location
    /home/hakermania/
    Posts
    233
    Thanks
    129
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Keep CheckBoxs' value be kept into the .conf file - QSettings Problem

    Well, I've stored tha values of lineedits, spinboxes and ComboBoxes into the .conf file with the help of QSettings (and settings.sync of course) But i've never kept the value of a checkbox and Idk how to do it becauz the setCheckState doesn't work at all.
    Please tell me what to place at the constructor and at the Close Event!

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Keep CheckBoxs' value be kept into the .conf file - QSettings Problem

    The documentation isn't clear on this. You need to look into the base class to find the functions you want:

    bool isChecked()
    and
    void setChecked(bool)

Similar Threads

  1. How to use QSettings to read INI file
    By Cantora in forum Newbie
    Replies: 8
    Last Post: 16th June 2011, 09:14
  2. Replies: 11
    Last Post: 26th July 2010, 06:01
  3. Replies: 0
    Last Post: 17th June 2010, 12:07
  4. Failure to read QMAKESPEC conf file
    By hosseinyounesi in forum Qt Programming
    Replies: 1
    Last Post: 24th July 2009, 05:12
  5. Failure to read QMAKESPEC conf file
    By hosseinyounesi in forum Newbie
    Replies: 3
    Last Post: 23rd July 2009, 18:46

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.