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

Change Font in QTextCursor failed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.0.0
    • 5.14, 5.15
    • GUI: Text handling
    • None
    • Windows 10/Visual Studio 2019
    • Windows

    Description

      create a QTextCharFormat, set a font family in that and use it to change the font of a selected textpart in a QTextCursor. The resulting HTML in the affected QTextDocument produces a wrong css style. See appended example. 

      Other Platforms than Windows not tested.

      Attachments

        1. QtChangeFontTest.zip
          2 kB
          Gerhard Kokerbeck
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            gerd Gerhard Kokerbeck
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes