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

Qt5.15 QFont::fromString() reads only about 10 values

    XMLWordPrintable

Details

    • Windows

    Description

      When QFont::fromString() in Qt 5.15 is used to read a description written with Qt 6, it fails because the number of values is too big (there is an explicit check for a maximum number of values in the code of QFont::fromString()).

      The documentation for QFont::toString() states that a font description consists of 16 comma-separated values, and the documentation for QFont::fromString() states that it reads descriptions as returned by toString().

      In Qt 5.15, however, only about 10 values are written and read.

      It would be nice if in Qt5.15 ignore the additional fields and return a font that corresponds to the fields it recognizes.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            irfan.omair@digia.com Irfan Omair
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes