QRect
QRect is a class in the Qt framework that represents a rectangle using integer coordinates. It is widely used to describe widget geometry, painting clipping regions, hit-testing, and other rectangular areas in GUI applications. A QRect is typically defined by its top-left corner and size, or by the coordinates of its edges.
Constructors and basic construction options include a default constructor, a constructor with left, top, width, and
Key properties and accessors expose the rectangle’s geometry. Common methods include left(), top(), right(), bottom(), x(),
Geometric operations support manipulation and combination. Useful functions include translated() (and its in-place variants) to move
QRect is complemented by QRectF, the floating-point counterpart, used when sub-pixel precision is required. In practice,