Results 1 to 2 of 2

Thread: Configuration on txt files

  1. #1
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Configuration on txt files

    I am planning to put all neccessary/configurable information to run my app in a text file

    eg

    ################################################## ############################
    #
    # Information File #
    ################################################## ############################
    # Information File Version
    .INFORMATION_FILE_VERSION: 15

    # PROJECT INFO
    .JOB
    # Job Id is used as the file name header and project name
    JOBID: Sample 1
    DESCRIPTION:
    {
    Wow this is really the best Job
    }
    .END

    ################################################## ############################
    .TOOL
    # Paper =1 ,Pen =2, Both = 3
    TYPE: 3
    # tool size in inches for diameter
    SIZE: 10.75
    .END
    ################################################## ############################
    # Sensor Map
    ################################################## ############################
    .SENSORCFG
    # number of sensors per sensor tool
    SENSORS: 10
    # You must tell how many physical pen
    NUMPEN: 20
    # Sensor heads are configured using the following format:
    # location #, Id #,
    {
    1 75
    2 130
    3 131
    4 133
    5 134
    6 136
    }
    .END
    Now, my question is , is there any Qt class that i can take advantage of , which will make my life easier in terms of reading, decoding, and saving files? (with my objective in mind)

    Any suggestions will be appreciated

    baray98

  2. #2
    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: Configuration on txt files

    Why not QSettings with built in support for INI-format?
    J-P Nurmi

Similar Threads

  1. compiling problem / Qt DLL files
    By ht1 in forum Newbie
    Replies: 1
    Last Post: 5th January 2008, 17:58
  2. how to save sequences of text files and sound files
    By nagpalma in forum Qt Programming
    Replies: 8
    Last Post: 3rd July 2007, 00:06
  3. Replies: 5
    Last Post: 22nd September 2006, 08:04
  4. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28
  5. Visual Studio 2003 and .vcproj files
    By mbjerkne in forum General Discussion
    Replies: 2
    Last Post: 1st February 2006, 00:51

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.