oficjalne100
17th December 2010, 19:12
Hello
I want set default path to ini file for my program. Default path must be current working directory. So I think that QSettings::setPath is excelent for that. I add following line in main function at very begin in my program (main function):
QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, ".");
But it does not work (i don't see the file with settings).
I try also:
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, ".");
But it does not work either.
How to set default path for ini file for my program?
I want set default path to ini file for my program. Default path must be current working directory. So I think that QSettings::setPath is excelent for that. I add following line in main function at very begin in my program (main function):
QSettings::setPath(QSettings::IniFormat, QSettings::SystemScope, ".");
But it does not work (i don't see the file with settings).
I try also:
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, ".");
But it does not work either.
How to set default path for ini file for my program?