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

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes