选项卡类。
属性#
| 读取(get) | 写入(set) | 类型 | 名称 | 说明 |
|---|---|---|---|---|
| x | x | int | currentPage | 当前页 |
| x | x | bool | showTab | 选项卡标题可见性 |
| x | x | bool | exclusive | 子控件独占模式 |
方法#
| 成员 | 说明 |
|---|---|
| Tab | 构造函数。 |
| getTabTitle | 获取选项卡标题。 |
| setTabTitle | 设置选项卡标题。 |
Tab([parent])#
构造函数。
- 参数:
MQWidget.WidgetBase parent - 父控件
getTabTitle(index)#
获取选项卡标题。
- 参数:
int index - 选项卡索引
- 返回值:
string - title
setTabTitle(index, title)#
设置选项卡标题。
- 参数:
int index - 选项卡索引 string title - 标题