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

Richtext labels do not support span-class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.1
    • Widgets: Style Sheets
    • None
    • All

    Description

      Setting richttext on a QLabel that contains a span with a class does apply the class.

       

      app.setStyleSheet(".italic { font-style: italic; }")

      label.setText("<span class='italic'>Should be italic but is not</span>")

       

      (The code is PySide6, they said its out of scope for them https://bugreports.qt.io/browse/PYSIDE-2044)

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            falondrian Sascha Worszeck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes