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

QSettings stores empty lists as invalid QVariants

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes