Q3CanvasRectangle Class ReferenceThe Q3CanvasRectangle class provides a rectangle on a Q3Canvas. More... #include <Q3CanvasRectangle> This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information. Inherits: Q3CanvasPolygonalItem. Public Functions
Reimplemented Public Functions
Reimplemented Protected Functions
Detailed DescriptionThe Q3CanvasRectangle class provides a rectangle on a Q3Canvas. This item paints a single rectangle which may have any pen() and brush(), but may not be tilted/rotated. For rotated rectangles, use Q3CanvasPolygon. The rectangle's size and initial position can be set in the constructor. The size can be set or changed later using setSize(). Use height() and width() to retrieve the rectangle's dimensions. The rectangle can be drawn on a painter with drawShape(). Like any other canvas item rectangles can be moved with Q3CanvasItem::move() and Q3CanvasItem::moveBy(), or by setting coordinates with Q3CanvasItem::setX(), Q3CanvasItem::setY() and Q3CanvasItem::setZ(). See also QtCanvas and Porting to Graphics View. Member Function Documentation
|