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

Text element paints horizontally-centered text that has line breaks incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.0.0
    • 4.7.4, 5.0.0
    • None
    • Windows 7, Linux (Ubuntu 10.04)
    • f50c0af7532247b3a9c38244ec297da97a8e31ab

      See attached screenshot and example qml file for a concrete example. Before Qt Quick 1.1 changes, each text line was centered individually to the item area, now the longest text line is the only one that will be centered, and the shorter text lines will be left-aligned to the painted area.

        1. textelement_horizontalalignment_bug.png
          1 kB
          Joona Petrell
        2. textelement_horizontalalignment_bug.qml
          0.3 kB
          Joona Petrell
        3. alignment.png
          13 kB
          Qt Support
        For Gerrit Dashboard: QTBUG-18617
        # Subject Branch Project Status CR V

            bodson Yann Bodson (Inactive)
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes