◆ QComboBox() [1/2]
◆ QComboBox() [2/2]
◆ addItems()
void addItems |
( |
String [] |
items | ) |
|
在文件 QComboBox.xcsm 第 37 行定义.
37 {
38 QtXnl.widget_set_object_value(nativehandle, Constant.COMBOBOXADD, items);
39 }
◆ clear()
在文件 QComboBox.xcsm 第 40 行定义.
40 {
41 QtXnl.widget_get_bool_value(nativehandle, Constant.COMBOXCLR);
42 }
◆ create() [1/2]
重载 QWidget .
在文件 QComboBox.xcsm 第 12 行定义.
12 {
13 nativehandle = QtXnl.createQObject(QType.qtComboBox,
this, 0);
14 if (nativehandle == 0){
15 return false;
16 }
17 return true;
18 }
◆ create() [2/2]
bool create |
( |
@NotNilptr QWidget |
parent | ) |
|
|
override |
重载 QWidget .
在文件 QComboBox.xcsm 第 20 行定义.
20 {
21 nativehandle = QtXnl.createQObject(QType.qtComboBox,
this, parent.nativehandle);
22 if (nativehandle == 0){
23 return false;
24 }
25 return true;
26 }
◆ getCurrentIndex()
在文件 QComboBox.xcsm 第 47 行定义.
47 {
48 return QtXnl.widget_get_int_value(nativehandle, Constant.COMBOBOXGETID);
49 }
◆ getCurrentText()
在文件 QComboBox.xcsm 第 32 行定义.
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.xcsm 第 43 行定义.
43 {
44 QtXnl.widget_set_vint_value(nativehandle, Constant.COMBOBOXSETID, id);
45 }
◆ setText()
在文件 QComboBox.xcsm 第 27 行定义.
27 {
28 QtXnl.widget_slot_string(nativehandle, Constant.COMBOSETTEXT, text);
29 }
◆ setView()
void setView |
( |
QAbstractItemView |
v | ) |
|
在文件 QComboBox.xcsm 第 51 行定义.
51 {
52 QtXnl.widget_set_native_value(nativehandle,Constant.QCOMBOBOX_SETVIEW,v.nativehandle);
53 }