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

Feature request for QSettings: handle comma separated list values without double quotes

    XMLWordPrintable

Details

    Description

      A customer requests for QSettings to handle comma separated listed values without double quotes. He believes it should be just a flag.

      Otherwise, you need to write a new reader and writer to manage that and register that using QSettings::registerFormat. Even after this, value() returns listed data comma separated, making parsing really difficult.

      So he requests for:

      1) Option for quoting listed values on/off switch
      2) See the comment character customizable (like # or ; or : and so on). Commented lines should not be retrieved after value() and contain() and such calls.

      What he expected to see:
      [Blah]
      boo=1,2,3
      returned as
      .value("boo").toString() == "1,2,3"

      What he got instead:
      [Blah]
      boo=1,2,3
      returned as
      .value("boo").toString() == "\"1,2,3\""

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes