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

QLabel incorrectly renders <hr> + font color + line breaks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • Some future release
    • 4.7.0
    • GUI: Text handling
    • None
    • Qt4.7.0 Carbon, Mac OSX 10.6.5, GCC4

    Description

      -create a QLabel
      -set the text to:
      "<hr><font color='red'>hr's + font blocks are buggy<br>you end up getting extra space between</font><br>the first two lines"
      -you'll find an extra line break after the first line for some reason. You must have both the <hr> and the <font> tag in order to get this to occur.
      -the above html is rendered correctly by webkit and other browsers, in other words this is a bug with QLabel

      You can easily reproduce this with the attahced .ui file. You can see the problem in the attached screenshot.

      Attachments

        1. htmlGlitch.png
          6 kB
          Will Stokes
        2. htmlGlitch.ui
          0.8 kB
          Will Stokes
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            wstokes Will Stokes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes