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

QTextDocument::setDefaultFont doesn't propergate the font properties to QTextCharFormat properties, causing QTextCharFormat::fontItalic() doesn't match the font.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.6.3, 4.7.1, 5.5.0
    • GUI: Text handling
    • None

    Description

      QTextCharFormat::fontItalic() should match QTextCharFormat::font().italic().
      We make sure this by propergating the font properties when we call QTextCharFormat::setFont and by collecting property values when we call QTextCharFormat::font(). However when setting the default font, the properties of the font are not correctly propergated, so after that QTextCharFormat::fontItalic() doesn't return the correct value.

      This problem exists for other properties too.
      Attached test case can be used to reproduce the problem. click in the middle of the string in the textedit and check the output information.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes