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

QSettings::beginWriteArray() produces output different from that documented

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.12, 5.14.1
    • Core: Other
    • None
    • All

    Description

      Tested by me under Qt 5.12.2 as supplied with Ubuntu 19.04.  Tested by other people on other releases/platforms, including Windows as well as Linux.

      Example at https://doc.qt.io/qt-5/qsettings.html#beginWriteArray chooses to state

      The generated keys will have the form

      • logins/size
      • logins/1/userName
      • etc.

      However, the generated keys use backslashes rather than forward slashes, e.g. logins\1\userName etc.

      This concerned me when I started using it.  It does work OK with the corresponding read array.

      Is this intentional behaviour (with no unanticipated side-effects from using backslash in key names), in which case it's a documentation issue, or is the code really supposed to be as shown?

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jonbrave J Barchan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes