is there is a config file in qt?
+1
A:
If you're trying to store settings for your own application in a config file, I've used QSettings like this before:
QSettings settings(QString("configs/config.ini"), QSettings::IniFormat);
QString someValue = settings.value("some/config/key", "default value if unset").toString(); // settings.value() returns QVariant
And exmaple configs/config.ini file:
[some]
config/key=whatever string here
Dan
2010-10-26 18:20:04