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

Documentation of QPainter::drawText

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P5: Not important
    • None
    • 4.8.2
    • None
    • 63eb5b5a798bd4d5de57243f79fde06b17233820

    Description

      http://qt-project.org/doc/qt-4.8/qpainter.html#drawText-10 says:

      "Draws the given text within the provided rectangle."

      The word "within" is slightly misleading. The rectangle is merely used as the basis for positioning the text, but no attempt is made to put the text "within" the rectangle if it does not fit into it.

      The sentence concerning alignment is incomplete:

      "Note: The y-coordinate of rectangle is used as the top of the font."

      This is only true for AlignTop, not for other alignments.

      Attachments

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

        Activity

          People

            leonlee Leonard Lee
            jens.mueller Jens Müller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes