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

qsettings problems with beginReadArray or maybe beginWriteArray

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • 4.6.3
    • Core: I/O
    • None
    • Linux with Qt 4.6.3

      Hi all,

      I use beginWriteArray to write some settings.
      The content of the config file looks like this:

      settings\1\Name=bibuweb
      settings\1\Server=bibuweb.de
      settings\1\Port=21
      settings\1\Login=login
      settings\1\Password=pw
      settings\1\Standard=true
      settings\size=1
      

      The problem is, I can not read back this config with beginReadArray.
      beginReadArray always gives back 0.

      According to the QSettings documentation the config file written by beginWriteArray should look like something like this:

      settings/1/Name=bibuweb
      settings/1/Server=bibuweb.de
      settings/1/Port=21
      settings/1/Login=login
      settings/1/Password=pw
      settings/1/Standard=true
      settings/size=1
      

      I changed this manually, but this wont work either.
      When I change this file manually to this:

      1\Name=bibuweb
      1\Server=bibuweb.de
      1\Port=21
      1\Login=login
      1\Password=pw
      1\Standard=true
      size=1
      

      beginReadArray can read the file perfectly.

      Does anybody know where the problem is?

      I'm developing on Linux with Qt 4.6.3

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

            Unassigned Unassigned
            alfredoc Alfredo Cubitos
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes