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

QSettings: Documentation and implementation differ

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.10.0 FF
    • 5.3.1
    • Core: I/O
    • None
    • linux
    • 0de9b3f12 (dev)

    Description

      The Documentation for QSettings states that QSettings ini format uses case-insensitive keys, but on linux thats not correct.

      The source shows the following:

      qtbase/src/corelib/io/qsettings_p.h
      ...
      #ifndef Q_OS_WIN
      #define QT_QSETTINGS_ALWAYS_CASE_SENSITIVE_AND_FORGET_ORIGINAL_KEY_ORDER
      #endif
      
      // used in testing framework
      #define QSETTINGS_P_H_VERSION 3
      
      #ifdef QT_QSETTINGS_ALWAYS_CASE_SENSITIVE_AND_FORGET_ORIGINAL_KEY_ORDER
      static const Qt::CaseSensitivity IniCaseSensitivity = Qt::CaseSensitive;
      ...
      

      Therefore on Linux the ini format is CaseSensitive.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              cmon Simon Schäfer
              Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes