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

HTML font attributes override styling, rather than add to it

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes