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

QRect/QRectF - upper-left

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.10
    • 5.8.0
    • Documentation
    • None

    Description

      Hi,

      not sure if it's worth a bug report but it confused me once during a discussion with my colleague (i tried to convince him that there's a function 'upperLeft()' ... )
      In the second sentence of the detailed description, 'upper-left' is used but nowhere else since it is top-left.

      See https://doc.qt.io/qt-5/qrectf.html#details :
      "A rectangle is normally expressed as an upper-left corner and a size. The size (width and height) of a QRectF is always equivalent to the mathematical rectangle that forms the basis for its rendering.

      A QRectF can be constructed with a set of left, top, width and height integers, or from a QPoint and a QSize. The following code creates two identical rectangles."

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes