PDA

View Full Version : creating .cfg file in qt



vishal.chauhan
11th January 2007, 05:28
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.

jpn
11th January 2007, 10:26
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?