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

Regression: <center> tag no longer centers rich text

    XMLWordPrintable

Details

    • 57f593b96f2b1af21e7d84099d169d51f698672f, dde265294fb8c48f9e0dce95d2287482ef0c0c6b

    Description

      The following code correctly centers the text in 4.8 (with import QtQuick 1.0), but no longer centers the text under 5.0 (with import QtQuick 2.0).

      import QtQuick 2.0
      
      Item {
          width: 800
          height: 400
      
          Text {
              textFormat: Text.RichText
              text: "<center>First line<br>----- Second line -----</center>"
              anchors.centerIn: parent
              color: "white"
              width: 300
      
              Rectangle {
                  anchors.fill: parent
                  z: -1
                  color: "blue"
              }
          }
      }
      

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes