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

SelectedTextColor ignored for <ol> content in TextEdit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.3, 6.9.2
    • None
    • macOS 15.6
      Win 11
    • macOS, Windows

      When using TextEdit, the selectedTextColor property does not apply correctly to text inside an HTML <ol> element. Instead of rendering the selected text in the specified color (e.g., "red"), the default selection color is used or the color is not applied at all. See attached screen.

      HTML Example:

      TextEdit {
                  textFormat: TextEdit.RichText
                  selectedTextColor: "red"
                  selectionColor: Qt.rgba(0, 128, 0, 0.5)
                  text: "<ol>
           <li>aaa</li>
           <li>bbb</li>
      </ol>"
      }

        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
            evgenpervenenko Evgen Pervenenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes