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

QSettings Unable to read the quoted configuration file

XMLWordPrintable

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

      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;

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes