tpTreeWidgetItem类
GUIFramework
2025-07-05
继承关系
基础信息
头文件: | include <tpTreeWidgetItem.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | tpChildWidget |
派生类: |
Public 成员函数
tpTreeWidgetItem(tpTreeWidgetItem *parent=nullptr) | ||
---|---|---|
tpTreeWidgetItem(const tpString &text, tpTreeWidgetItem *parent=nullptr) | ||
tpTreeWidgetItem(const tpString &text, const tpString &iconPath, tpTreeWidgetItem *parent=nullptr) | ||
~tpTreeWidgetItem() | ||
tpFont * | font() | |
setText(const tpString &text) | ||
tpString | text() | |
setIcon(const tpString &iconPath) | ||
tpShared< tpSurface > | icon() | |
setExpanded(bool expand) | ||
isExpanded() const | ||
setSelected(bool selected) | ||
isSelected() | ||
tpVariant | data(int32_t role) const | |
setData(int32_t role, const tpVariant &value) | ||
setParent(tpTreeWidgetItem *parent) | ||
tpTreeWidgetItem * tpTreeWidgetItem::parent | parent() | |
tpTreeWidgetItem * tpTreeWidgetItem::child | child(uint32_t index) | |
childCount() | ||
indexOfChild(tpTreeWidgetItem *child) const | ||
addChild(tpTreeWidgetItem *child) | ||
insertChild(uint32_t index, tpTreeWidgetItem *child) | ||
removeChild(tpTreeWidgetItem *child) | ||
tpTreeWidgetItem * tpTreeWidgetItem::takeChild | takeChild(uint32_t index) | |
addChildren(const tpList< tpTreeWidgetItem * > &children) | ||
insertChildren(uint32_t index, const tpList< tpTreeWidgetItem * > &children) | ||
tpList< tpTreeWidgetItem * > tpTreeWidgetItem::takeChildren | takeChildren() |
Protected成员函数
onPaintEvent(tpObjectPaintEvent *event) override | 绘制事件,禁止在该函数调用 paint和update函数 |
---|
成员函数说明
tpTreeWidgetItem::tpTreeWidgetItem(tpTreeWidgetItem *parent=nullptr)
暂无注释...
tpTreeWidgetItem::tpTreeWidgetItem(const tpString &text, tpTreeWidgetItem *parent=nullptr)
暂无注释...
tpTreeWidgetItem::tpTreeWidgetItem(const tpString &text, const tpString &iconPath, tpTreeWidgetItem *parent=nullptr)
暂无注释...
tpTreeWidgetItem::~tpTreeWidgetItem()
暂无注释...
tpFont * tpTreeWidgetItem::font()
暂无注释...
void tpTreeWidgetItem::setText(const tpString &text)
暂无注释...
tpString tpTreeWidgetItem::text()
暂无注释...
void tpTreeWidgetItem::setIcon(const tpString &iconPath)
暂无注释...
tpShared< tpSurface > tpTreeWidgetItem::icon()
暂无注释...
void tpTreeWidgetItem::setExpanded(bool expand)
暂无注释...
bool tpTreeWidgetItem::isExpanded() const
暂无注释...
void tpTreeWidgetItem::setSelected(bool selected)
暂无注释...
bool tpTreeWidgetItem::isSelected()
暂无注释...
tpVariant tpTreeWidgetItem::data(int32_t role) const
暂无注释...
void tpTreeWidgetItem::setData(int32_t role, const tpVariant &value)
暂无注释...
void tpTreeWidgetItem::setParent(tpTreeWidgetItem *parent)
暂无注释...
tpTreeWidgetItem * tpTreeWidgetItem::parent()
暂无注释...
tpTreeWidgetItem * tpTreeWidgetItem::child(uint32_t index)
暂无注释...
uint32_t tpTreeWidgetItem::childCount()
暂无注释...
uint32_t tpTreeWidgetItem::indexOfChild(tpTreeWidgetItem *child) const
暂无注释...
void tpTreeWidgetItem::addChild(tpTreeWidgetItem *child)
暂无注释...
void tpTreeWidgetItem::insertChild(uint32_t index, tpTreeWidgetItem *child)
暂无注释...
void tpTreeWidgetItem::removeChild(tpTreeWidgetItem *child)
暂无注释...
tpTreeWidgetItem * tpTreeWidgetItem::takeChild(uint32_t index)
暂无注释...
void tpTreeWidgetItem::addChildren(const tpList< tpTreeWidgetItem * > &children)
暂无注释...
void tpTreeWidgetItem::insertChildren(uint32_t index, const tpList< tpTreeWidgetItem * > &children)
暂无注释...
tpList< tpTreeWidgetItem * > tpTreeWidgetItem::takeChildren()
暂无注释...
virtual
bool tpTreeWidgetItem::onPaintEvent(tpObjectPaintEvent *event) override
点击查看...
绘制事件,禁止在该函数调用 paint和update函数
返回值:
返回true继续执行子控件绘制