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

QSettings key with asterisk for QT_LOGGING_CONF

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.11.0
    • Fix Version/s: 5.11.2, 5.12.0
    • Component/s: Core: I/O
    • Labels:
      None
    • Commits:
      bd0279c4173eb627d432d9a05411bbc725240d4e

      Description

      When you use a configuration file for your logging rules and read/write this file with QSettings, you're not able to save an asterisk. The asterisk will be encoded to %2A and saved. So the whished logging rule won't be applied.

      QSettings settings("config.ini", QSettings::IniFormat);
      settings.beginGroup("Rules");
      settings.setValue("module.*", false);
      settings.endGroup();
      

      The code above will be saved in the config.ini file as:

      [Rules]
      module.%2A=false
      

      Now, If you set the QT_LOGGING_CONF environment variable to config.ini, the QLoggingCategory is not able to interpret %2A as asterisk.

      So either, QSettings will save the asterisk without encoding or the parser of QLoggingCategory can interpret the encoding.

        Attachments

        For Gerrit Dashboard: QTBUG-69548
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              kkohne Kai Köhne
              Reporter:
              beecksche beecksche
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes