You are not logged in.

1

Friday, July 8th 2005, 2:46pm

QSettings / Windows / QSettings::Ini

Hello All,

I am using QT 3.3.4 on Windos XP and have been using QSettings to save settings to the registry with no problem. Because of a programming requirement I must save the settings to a configuration instead. I have tried various things with QSettings::setPath and insertPath and also beginGroup, but no ini file is created anywhere on my system. Does appSettings = new QSettings(QSettings::Ini); work on Windows XP? I delete appSettings since I read that it only writes when it is deleted.

Any help is appreciated,
David

dimitri

Professional

  • "dimitri" is male

Posts: 1,311

Occupation: Engineer

  • Send private message

2

Friday, July 8th 2005, 3:54pm

RE: QSettings / Windows / QSettings::Ini

Yes, QSettings work on Windows XP. Make sure you really delete appSettings.

3

Monday, July 11th 2005, 2:56pm

RE: QSettings / Windows / QSettings::Ini

Thanks for replying, and sorry for the delay getting back to you, I had to take time out for Hurricane Dennis

I have tried everything I can think of and still cannot get it to work. Where is the ini created? Do you have any code samples?

Thanks,
David

HowardH

Beginner

  • "HowardH" is male

Posts: 23

Location: Plano, Texas

Occupation: I am a C++ programmer

  • Send private message

4

Thursday, April 20th 2006, 8:23pm

RE: QSettings / Windows / QSettings::Ini

The 'ini' file is created in your "Documents and Settings" directory under your username, with a filename that ends in "rc" (no extension).