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

Documentation of QPainter::drawText

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes