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

QML RichText centering paragraph doesn't work on image

    XMLWordPrintable

Details

    Description

      When an image is wrapped in a paragraph, and displayed in a RichText format Text object, centering doesn't work. Adding some text makes it work. For instance:

      <p align="center">foo</p>

      centers the word "foo", but

      <p align="center"><img src="foo.png"></p>

      doesn't center the image. However,

      <p align="center">&nbsp;<img src="foo.png">&nbsp;</p>

      adds enough text to center the image.

      This may affect Qt widgets too, but I haven't tried it.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            pderocco Paul DeRocco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes