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

QSettings: Documentation and implementation differ

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.1
    • Core: I/O, Documentation
    • None
    • linux

    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

              docteam Qt Documentation Team
              cmon Simon Schäfer
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes