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

QTextDocument: HTML image width tag is not handled correctly when the width is supplied as a percentage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.6.3
    • GUI: Text handling
    • None
    • Reproduced on windows
    • ab2f4ef8f (dev)

    Description

      If HTML is set on a QTextDocument such as this: <img src="./test.png" width="50%" />

      the image disappears. This can be worked around by supplying a pixel width - e.g. <img src="./test.png" width="50" />

      or by specifying a pixel height and percentage width for scaling.

      The image should be scaled horizontally even in no height is supplied.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              cattell Matthew Cattell (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes