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

QSettings: Documentation and implementation differ

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.8.4, 6.9.1, 6.10.0 FF
    • 5.3.1
    • Core: I/O
    • None
    • linux
    • 0de9b3f12 (dev), 2b5e55e16 (6.9), c933bdcf5 (6.8)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes