Results 1 to 2 of 2

Thread: using .INI files

  1. #1
    Join Date
    Aug 2011
    Posts
    35
    Thanks
    5

    Default using .INI files

    Hi guys,
    I have a QComboBox in my window which has 2 options: Board 1 and Board2 which have their own specifications for values for variables used in my program. I want to use a .INI file to call these values. Under each board, I want to assign values to the following variables: nsine, nsquare, ntri and nmulti. I am trying to learn how to use .INI file to do this. Any help would be greatly appreciated.
    My ini file looks something like this:

    Qt Code:
    1. [board]
    2. name = Board1
    3.  
    4. [values]
    5. nsine = 8.56
    6. nsquare = 8.56
    7. ntri = 13.8
    8. nmulti = 8.56
    9.  
    10. [board]
    11. name = Board2
    12.  
    13. [values]
    14. nsine = 10.5
    15. nsquare = 10.5
    16. ntri = 15.6
    17. nmulti = 10.5
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10
    Thanked 31 Times in 25 Posts

    Default Re: using .INI files

    Check out this thread : How-to-use-QSettings-to-read-INI-file

Similar Threads

  1. Replies: 1
    Last Post: 16th August 2011, 00:26
  2. Replies: 9
    Last Post: 28th April 2010, 10:18
  3. Replies: 12
    Last Post: 17th June 2009, 06:34
  4. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 22:05
  5. how to save sequences of text files and sound files
    By nagpalma in forum Qt Programming
    Replies: 8
    Last Post: 3rd July 2007, 01:06

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.