Q3CanvasText Class ReferenceThe Q3CanvasText class provides a text object on a Q3Canvas. More... #include <Q3CanvasText> 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: Q3CanvasItem. Public Functions
Reimplemented Public Functions
Reimplemented Protected Functions
Detailed DescriptionThe Q3CanvasText class provides a text object on a Q3Canvas. A canvas text item has text with font, color and alignment attributes. The text and font can be set in the constructor or set or changed later with setText() and setFont(). The color is set with setColor() and the alignment with setTextFlags(). The text item's bounding rectangle is retrieved with boundingRect(). The text can be drawn on a painter with draw(). Like any other canvas item text items 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
|