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

QSettings Unable to read the quoted configuration file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.11.3, 5.15.5
    • None
    • linux
    • All

    Description

      When QSettings reads the key value with English "", the "" will be dereferenced by QSettings by default.

      For example, in the configuration file:
      key="12345678"
      Expect the key value read by QSettings to be: "12345678"
      The actual value read is: 12345678

      Solution 1: You can use the escape character to prevent the quotation marks from being dereferenced;
      Solution 2: The WriteFunc function is provided in Qt's QSetting, so that the quotation marks are not dereferenced by registering the self-defined format reading method;

      It is expected that Qt can provide corresponding solutions, and users do not need to implement this solution by themselves;

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            liqiangc Li Qinag
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes