Results 1 to 3 of 3

Thread: Config file parsing

  1. #1
    Join Date
    Sep 2006
    Posts
    13
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Config file parsing

    Alright i have been looking through here with not too much luck on parsing a config file. I have figured out that I can parse it between the '=' sign which is origianally what i wanted to do. The only problem is I have no idea where to start looking to do something like that. If anyone could point me in the right place it would be greatly appreciated. Example code of the such would be appreciated also if you are willing to contribute. Thanks in advance.

    -Vash

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Config file parsing

    If your config files are in INI format, then QSettings will handle them for you. Otherwise you will find QRegExp helpful.

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

    Vash5556 (13th September 2006)

  4. #3
    Join Date
    Sep 2006
    Posts
    13
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Config file parsing

    Thanks for the timely response. Ive finally been able to push out my first beta using Qt for our project at school. Thanks for pointing me in the right direction.

    -Vash

Similar Threads

  1. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47
  2. SQLite-DB in a qrc file
    By Lykurg in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2006, 19:24
  3. File permission QFile::WriteOther on Win Dos
    By patrik08 in forum Newbie
    Replies: 1
    Last Post: 13th June 2006, 14:16
  4. QHttp GET File & Password
    By patrik08 in forum Qt Programming
    Replies: 4
    Last Post: 11th June 2006, 13:04
  5. Accessing DTD in an XML file via QtXml module?
    By jorma in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2006, 18:09

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.