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

QPainter::drawText: Qt::AlignTop ignored in combination with Qt::AlignCenter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.1
    • GUI: Painting
    • None

    Description

      Given a QPainter p,

      flag combinations behave as follows:

      p.drawText( rect, Qt::AlignCenter | Qt::AlignTop, text ): The text is drawn vertically centered in the given rectangle (WRONG, should be at the top) and horizontally centered.

      p.drawText( rect, Qt::AlignLeft | Qt::AlignTop, text ): Works as expected.

      p.drawText( rect, Qt::AlignCenter | Qt::AlignBottom, text ): Works as expected.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            jens.mueller Jens Müller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes