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

HTML font attributes override styling, rather than add to it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.0
    • None
    • 41a1ff4e3 (dev)

    Description

      I'm finding this problem with QML Text objects, using RichText format, but it may also apply to Qt QTextDocument objects.

      If I apply a style to something like a paragraph, and then apply some font-related format to something inside the paragraph, it overrides the entire style, instead of adding to it.

      For instance {{<p style="font-size: 10px">This has <i>italics</i> in it</p> }}should display everything in very tiny type, with one word italicized. Instead, the italicized word reverts to the normal text size. This happens any time formatting is applied to a portion of an element, including by a "style" attribute, or a CSS class name. This is not how web browsers work.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-73859
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              pderocco Paul DeRocco
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes