Integrates QSettings class. Add function save settings.