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

Regression: <center> tag no longer centers rich text

XMLWordPrintable

    • 57f593b96f2b1af21e7d84099d169d51f698672f, dde265294fb8c48f9e0dce95d2287482ef0c0c6b

      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"
              }
          }
      }
      

        For Gerrit Dashboard: QTBUG-29262
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes