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

HTML not displayed correctly in QTextEdit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.1, 5.0.2
    • GUI: Text handling
    • None
    • I am using a 64-bit build of Qt 4.8.1 on the 64-bit version of Windows 7 Professional. I also tested with Qt 5.0.2 and had the same issue.

      Setting the HTML of a QTextEdit control to contain nested unordered lists (<ul> tags) will result in the text not being displayed. There will be extra space in the last nested list. The same HTML is displayed properly in Internet Explorer and Chrome. I've attached example HTML code to reproduce. Just add a QTextEdit control in Qt Designer and set the HTML property to the contents of the file.

        1. test.htm
          0.3 kB
          David Golub
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            golubdr David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes