Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51237

QSettings stores empty lists as invalid QVariants

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.7
    • Core: I/O
    • None

      The associated comment in the source code says: "@Invalid() stands for QVariant(), and QVariant().toStringList() returns an empty QStringList, so we're in good shape."
      However, this is only true if you already have a mapping of keys to their types before reading the settings.
      Anyway, it is certainly unexpected to store a valid Variant and receive an invalid one back.

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

            laknoll Lars Knoll
            kandeler Christian Kandeler
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes