Read more about QSettings especially about QSettings::contains.