Store preferences in QSettings object