QGraphicsItemGroup的继承
更多...
#include <DAGraphicsItemGroup.h>
|
| enum | { Type = DA::ItemType_DAGraphicsItem
} |
| | 适用qgraphicsitem_cast
|
| |
|
|
virtual int | type () const override |
| |
|
| DAGraphicsItemGroup (QGraphicsItem *parent=nullptr) |
| |
| virtual bool | saveToXml (QDomDocument *doc, QDomElement *parentElement, const QVersionNumber &ver) const override |
| | 保存到xml中
|
| |
| virtual bool | loadFromXml (const QDomElement *parentElement, const QVersionNumber &ver) override |
| | 从xml中加载
|
| |
| void | setBorderPen (const QPen &p) |
| | 设置边框画笔
|
| |
| QPen | getBorderPen () const |
| | 获取当前边框画笔
|
| |
| void | setShowBorder (bool on) |
| | 设置显示边框
|
| |
| bool | isShowBorder () const |
| | 是否显示边框
|
| |
| void | setBackgroundBrush (const QBrush &b) |
| | 设置背景
|
| |
| QBrush | getBackgroundBrush () const |
| | 获取背景
|
| |
| void | setShowBackground (bool on) |
| | 设置显示背景
|
| |
| bool | isShowBackground () const |
| | 是否显示背景
|
| |
|
uint64_t | getItemID () const |
| |
|
void | setItemID (uint64_t id) |
| |
| QList< DAGraphicsItemGroup * > | childGroups () const |
| | 获取分组下的分组
|
| |
| QList< QGraphicsItem * > | childItemsExcludingGrouping () const |
| | 获取不包含分组的子item
|
| |
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
| |
|
virtual QVariant | itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override |
| |
|
| template<typename std_container_like > |
| static QDomElement | makeElement (const std_container_like &v, const QString &tagName, QDomDocument *doc) |
| | 生成一个文本
|
| |
| template<typename std_container_like > |
| static bool | loadElement (std_container_like &v, const QDomElement *ele) |
| | 加载文本
|
| |
|
static QDomElement | makeSysInfoElement (const QString &tagName, QDomDocument *doc) |
| |
| static void | appendElementWithText (QDomElement &parent, const QString &tagName, const QString &text, QDomDocument *doc) |
| | 在parent下,插入一个tag,tag下包含文字text
|
| |
◆ childGroups()
◆ childItemsExcludingGrouping()
| QList< QGraphicsItem * > DA::DAGraphicsItemGroup::childItemsExcludingGrouping |
( |
| ) |
const |
◆ getBackgroundBrush()
| QBrush DA::DAGraphicsItemGroup::getBackgroundBrush |
( |
| ) |
const |
◆ getBorderPen()
| QPen DA::DAGraphicsItemGroup::getBorderPen |
( |
| ) |
const |
◆ isShowBackground()
| bool DA::DAGraphicsItemGroup::isShowBackground |
( |
| ) |
const |
◆ isShowBorder()
| bool DA::DAGraphicsItemGroup::isShowBorder |
( |
| ) |
const |
◆ loadFromXml()
| bool DA::DAGraphicsItemGroup::loadFromXml |
( |
const QDomElement * |
parentElement, |
|
|
const QVersionNumber & |
ver |
|
) |
| |
|
overridevirtual |
◆ saveToXml()
| bool DA::DAGraphicsItemGroup::saveToXml |
( |
QDomDocument * |
doc, |
|
|
QDomElement * |
parentElement, |
|
|
const QVersionNumber & |
ver |
|
) |
| const |
|
overridevirtual |
◆ setBackgroundBrush()
| void DA::DAGraphicsItemGroup::setBackgroundBrush |
( |
const QBrush & |
b | ) |
|
◆ setBorderPen()
| void DA::DAGraphicsItemGroup::setBorderPen |
( |
const QPen & |
p | ) |
|
设置边框画笔
- 注解
- 设置后不会重绘,重绘用户自己调用update
- 参数
-
◆ setShowBackground()
| void DA::DAGraphicsItemGroup::setShowBackground |
( |
bool |
on | ) |
|
◆ setShowBorder()
| void DA::DAGraphicsItemGroup::setShowBorder |
( |
bool |
on | ) |
|
该类的文档由以下文件生成:
- /home/runner/work/data-workbench/data-workbench/src/DAGraphicsView/DAGraphicsItemGroup.h
- /home/runner/work/data-workbench/data-workbench/src/DAGraphicsView/DAGraphicsItemGroup.cpp