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

Problems rendering continious spaces in the end of line with text-decoration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.7.2
    • GUI: Text handling
    • None
    • Windows 11 Home, 23H2, 22631.4169, Windows Feature Experience Pack 1000.22700.1034.0
    • Windows

    Description

      Create a QTextEdit object textEdit and run

      ui->textEdit->setText("<span style=\"text-decoration: underline; text-decoration-color: red; white-space: pre;\">    </span><br>"); 

      Expected result: all the four spaces should be underlined, and these spaces can be selected

      Actual result: only the first space is underlined, and these spaces cannot be selected

      (I am not an English native speaker so I wish my grammar mistakes won't disturb understanding)

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            zz_404 ZZ H
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes