Results 1 to 2 of 2

Thread: creating .cfg file in qt

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question creating .cfg file in qt

    Hi All,

    I m using Qt 4.2.2 on my Mac intel.
    I want to create a .cfg file from qt.

    I have a structure.
    typedef struct tagAppendHdrFile
    {
    tagAppendHdrFile *next;

    char bSoftwareName[260];
    int iSoftwareNameLength;
    char bFileExt[16];
    int iFileExtLength;

    long dwHeaderOffset;
    char HeaderLength;
    char bHeader[15];
    char IfSelected;
    char IndexNo;

    }HEADER_FILE;

    Actually I have a tableWidget in which I have two columns

    1. HeaderName(As Nikon)
    2. Extension (NEF)

    I have to store this structure information for each Header in the .cfg file through qt.

    I have a checkbox on each row and when I select any Header and click ok then the Header which is checked should be updated in the .cfg file.

    If anybody knows then plz help me.

    Thanks.

  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: creating .cfg file in qt

    What do you mean by a .cfg file? Some specific format or just a config file in spite of format? Have you taken look at QSettings?
    J-P Nurmi

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. Replies: 7
    Last Post: 31st May 2006, 09:37

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.