use QSettings object to manage settings