Amita
21st July 2011, 14:32
Dear All,
I am using QSettings for creating and adding config file. And I am using Array element. I am adding and deleting array elements programatically. I am able to add/delete that array element from config file but doing so it does not change the size of the array. Next time I run the program I cannot see the changes in size.
sizeOfArray = pSettings->beginReadArray("ArrayName");
This is because adding or deleting elements in the config file does not change the value "size __ " automatically. Does anybody know how to change the size of QSettings Array. Currently I am doing it manually by reading the file using QFile, but I don't like it.
Please let me know if you know something in this regard.
Thank you in advance,
Amita
I am using QSettings for creating and adding config file. And I am using Array element. I am adding and deleting array elements programatically. I am able to add/delete that array element from config file but doing so it does not change the size of the array. Next time I run the program I cannot see the changes in size.
sizeOfArray = pSettings->beginReadArray("ArrayName");
This is because adding or deleting elements in the config file does not change the value "size __ " automatically. Does anybody know how to change the size of QSettings Array. Currently I am doing it manually by reading the file using QFile, but I don't like it.
Please let me know if you know something in this regard.
Thank you in advance,
Amita