|
KanoopGuiQt 1.3.0
Qt GUI utility library
|
|
QGraphicsEllipseItem with an application-defined type integer and appearance helpers. More...
#include <ellipsegraphicsitem.h>
Inheritance diagram for EllipseGraphicsItem:
Collaboration diagram for EllipseGraphicsItem:Public Member Functions | |
| EllipseGraphicsItem (int type, QGraphicsItem *parent=nullptr) | |
| Construct with a type integer and optional parent item. | |
| virtual int | type () const override |
| Return the application-defined type integer. | |
| void | setWidth (double width) |
| Set the pen width of the ellipse outline. | |
| void | setColor (const QColor &color) |
| Set the fill and outline color. | |
QGraphicsEllipseItem with an application-defined type integer and appearance helpers.
EllipseGraphicsItem stores a type integer (returned by type()) that allows qgraphicsitem_cast<> and scene item-type filtering to work with custom types.
Definition at line 12 of file ellipsegraphicsitem.h.
| EllipseGraphicsItem::EllipseGraphicsItem | ( | int | type, |
| QGraphicsItem * | parent = nullptr |
||
| ) |
Construct with a type integer and optional parent item.
| type | Application-defined graphics item type |
| parent | Optional parent QGraphicsItem |
| void EllipseGraphicsItem::setColor | ( | const QColor & | color | ) |
Set the fill and outline color.
| color | Color to apply to the brush and pen |
| void EllipseGraphicsItem::setWidth | ( | double | width | ) |
Set the pen width of the ellipse outline.
| width | Pen width in scene units |
|
inlineoverridevirtual |
Return the application-defined type integer.
Definition at line 26 of file ellipsegraphicsitem.h.