TpMediaTileButton 类
V0.2.1TpGUIWidgets
2025-11-04
介绍
多媒体磁铁开关按钮
继承关系
基础信息
| 头文件: | include <TpMediaTileButton.h> |
|---|---|
| Cmake: | None |
| 发布版本: | V0.2.1 |
| 继承类: | TpWidget |
| 派生类: |
信号
| 信号名称 | 参数 | 描述 |
|---|---|---|
| onClicked | bool | 按钮点击信号槽,鼠标释放时触发 参数:bool: 按钮选中状态 |
Public 成员函数
| TpMediaTileButton(TpWidget *parent=nullptr) | ||
|---|---|---|
| ~TpMediaTileButton() | ||
| setIcon(const TpString &iconPath) | 设置按钮图标 | |
| setText(const TpString &text) | 设置文本 |
成员函数说明
TpMediaTileButton::TpMediaTileButton(TpWidget *parent=nullptr)
暂无注释...
virtual TpMediaTileButton::~TpMediaTileButton()
暂无注释...
void TpMediaTileButton::setIcon(const TpString &iconPath)
设置按钮图标...
设置按钮图标
参数:iconPath: 按钮图标绝对路径
void TpMediaTileButton::setText(const TpString &text)
设置文本...
设置文本
参数:text: 文本字符串
