Details
Description
Reading value from settings return "true" as a string not as a bool.
Run the following code 2 time ( to store a value ) .
This is critical. Because bool("false") return True !
from PySide2.QtWidgets import * from PySide2.QtCore import * import sys if __name__ == "__main__": app = QApplication(sys.argv) app.setOrganizationName("labsquare") settings = QSettings() print(type(settings.value("check"))) # ===> bool settings.setValue("check", True) print(type(settings.value("check"))) # ==> str