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

Public 成员函数

额外继承的成员函数

详细描述

在文件 QComboBox.xcsm3 行定义.

构造及析构函数说明

◆ QComboBox() [1/2]

QComboBox ( )

在文件 QComboBox.xcsm4 行定义.

4 {
5
6 }

◆ QComboBox() [2/2]

QComboBox ( long  handle)

在文件 QComboBox.xcsm8 行定义.

8 {
9 super(handle);
10 }

成员函数说明

◆ addItems()

void addItems ( String []  items)

在文件 QComboBox.xcsm37 行定义.

37 {
38 QtXnl.widget_set_object_value(nativehandle, Constant.COMBOBOXADD, items);
39 }

◆ clear()

void clear ( )

在文件 QComboBox.xcsm40 行定义.

40 {
41 QtXnl.widget_get_bool_value(nativehandle, Constant.COMBOXCLR);
42 }

◆ create() [1/2]

bool create ( )
override

重载 QWidget .

在文件 QComboBox.xcsm12 行定义.

12 {
13 nativehandle = QtXnl.createQObject(QType.qtComboBox, this, 0);
14 if (nativehandle == 0){
15 return false;
16 }
17 return true;
18 }
long nativehandle
Definition QNative.xcsm:91

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)
override

重载 QWidget .

在文件 QComboBox.xcsm20 行定义.

20 {
21 nativehandle = QtXnl.createQObject(QType.qtComboBox, this, parent.nativehandle);
22 if (nativehandle == 0){
23 return false;
24 }
25 return true;
26 }

◆ getCurrentIndex()

int getCurrentIndex ( )

在文件 QComboBox.xcsm47 行定义.

47 {
48 return QtXnl.widget_get_int_value(nativehandle, Constant.COMBOBOXGETID);
49 }

◆ getCurrentText()

String getCurrentText ( )

在文件 QComboBox.xcsm32 行定义.

32 {
33 String __txt = (String)QtXnl.core_getString(nativehandle, Constant.COMBOGETTEXT);
34 __nilptr_safe(__txt);
35 return __txt;
36 }
字符串类

◆ setCurrentIndex()

void setCurrentIndex ( int  id)

在文件 QComboBox.xcsm43 行定义.

43 {
44 QtXnl.widget_set_vint_value(nativehandle, Constant.COMBOBOXSETID, id);
45 }

◆ setText()

void setText ( String  text)

在文件 QComboBox.xcsm27 行定义.

27 {
28 QtXnl.widget_slot_string(nativehandle, Constant.COMBOSETTEXT, text);
29 }

◆ setView()

void setView ( QAbstractItemView  v)

在文件 QComboBox.xcsm51 行定义.

51 {
52 QtXnl.widget_set_native_value(nativehandle,Constant.QCOMBOBOX_SETVIEW,v.nativehandle);
53 }