Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1130

PySide2.QtCore.QSettings.value returns None when value is 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.13.2
    • 5.12.5, 5.13.1
    • PySide
    • None
    • Windows
    • ba04613a65be7b50bbcc9dae8c18d195243513c3 (pyside/pyside-setup/5.13) 0395817102e9b8601c93e60349360fcdd8a3c66d (pyside/pyside-setup/5.12)

    Description

      Calling settings.value("foo") will return None if the value has previously been set to 0. This is proving difficult for me to work around while respecting application default values.

      I am using Windows and QtCore.QSettings.setDefaultFormat(QtCore.QSettings.IniFormat) if that matters.

      This happens on versions 5.12.5 and 5.13.1, but does not happen on 5.12.3 or 5.12.4. I'm guessing this is related to the fix for PYSIDE-1010

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              ecejeff Jeffrey Nichols
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes