def setSetting(self, settingName, value): settings = QSettings() settings.setValue(self.moduleName + '/' + settingName, value)
def setSetting(self, settingName, value): settings = QSettings() settings.setValue(self.moduleName + '/'+ settingName, value)
def getSetting(self, settingName, defaultValue=""): settings = QSettings() value = settings.value(self.moduleName + '/' + settingName, defaultValue) return value if value is not None and value != "" else defaultValue