xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数
QAbstractButton类 参考
类 QAbstractButton 继承关系图:
QWidget QCheckBox QPushButton

Public 成员函数

额外继承的成员函数

详细描述

在文件 QAbstractButton.x4 行定义.

构造及析构函数说明

◆ QAbstractButton() [1/2]

QAbstractButton ( )

在文件 QAbstractButton.x5 行定义.

5{}

◆ QAbstractButton() [2/2]

QAbstractButton ( long  handle)

在文件 QAbstractButton.x6 行定义.

6 {
7 super(handle);
8 }

成员函数说明

◆ getCheck()

bool getCheck ( )

在文件 QAbstractButton.x12 行定义.

12 {
13 return QtXnl.widget_get_bool_value(nativehandle, Constant.CHKGETCHECK);
14 }

◆ getText()

String getText ( )

在文件 QAbstractButton.x18 行定义.

18 {
19 return (String)QtXnl.core_getString(nativehandle, Constant.BUTTONGETTEXT);
20 }
字符串类

◆ setCheck()

void setCheck ( bool  bc)

在文件 QAbstractButton.x15 行定义.

15 {
16 QtXnl.widget_set_bool_value(nativehandle, Constant.CHKSETCHECK, bc);
17 }

◆ setIcon()

void setIcon ( QIcon  icon)

在文件 QAbstractButton.x21 行定义.

21 {
22 QtXnl.widget_set_native_value(nativehandle, Constant.QBUTTON_SETICON, icon.nativehandle);
23 }

◆ setIconSize()

void setIconSize ( int  cx,
int  cy 
)

在文件 QAbstractButton.x24 行定义.

24 {
25 QtXnl.widget_set_v2int_value(nativehandle, Constant.QBUTTON_SETICONSIZE, cx, cy);
26 }

◆ setText()

void setText ( String  text)

在文件 QAbstractButton.x9 行定义.

9 {
10 QtXnl.widget_slot_string(nativehandle, Constant.BUTTONSETTEXT, text);
11 }