xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QComboBox.xcsm
浏览该文件的文档.
1
2
package
Qt{
3
@SuppressWarnings public class QComboBox : QWidget{
4
public QComboBox(){
5
6
}
7
8
public QComboBox(long handle){
9
super(handle);
10
}
11
12
public
bool
create
()
override
{
13
nativehandle = QtXnl.createQObject(QType.qtComboBox,
this
, 0);
14
if
(nativehandle == 0){
15
return
false
;
16
}
17
return
true
;
18
}
19
20
public
bool
create
(@NotNilptr QWidget parent)
override
{
21
nativehandle = QtXnl.createQObject(QType.qtComboBox,
this
, parent.nativehandle);
22
if
(nativehandle == 0){
23
return
false
;
24
}
25
return
true
;
26
}
27
public
void
setText
(
String
text){
28
QtXnl.widget_slot_string(nativehandle, Constant.COMBOSETTEXT, text);
29
}
30
31
@NotNilptr
32
public
String
getCurrentText
(){
33
String
__txt = (
String
)QtXnl.core_getString(nativehandle, Constant.COMBOGETTEXT);
34
__nilptr_safe(__txt);
35
return
__txt;
36
}
37
public
void
addItems
(
String
[] items){
38
QtXnl.widget_set_object_value(nativehandle, Constant.COMBOBOXADD, items);
39
}
40
public
void
clear
(){
41
QtXnl.widget_get_bool_value(nativehandle, Constant.COMBOXCLR);
42
}
43
public
void
setCurrentIndex
(
int
id
){
44
QtXnl.widget_set_vint_value(nativehandle, Constant.COMBOBOXSETID,
id
);
45
}
46
47
public
int
getCurrentIndex
(){
48
return
QtXnl.widget_get_int_value(nativehandle, Constant.COMBOBOXGETID);
49
}
50
51
public
void
setView
(QAbstractItemView v){
52
QtXnl.widget_set_native_value(nativehandle,Constant.QCOMBOBOX_SETVIEW,v.nativehandle);
53
}
54
};
55
};
Qt.QComboBox.setText
void setText(String text)
Definition
QComboBox.xcsm:27
Qt.QComboBox.setView
void setView(QAbstractItemView v)
Definition
QComboBox.xcsm:51
Qt.QComboBox.getCurrentIndex
int getCurrentIndex()
Definition
QComboBox.xcsm:47
Qt.QComboBox.create
bool create() override
Definition
QComboBox.xcsm:12
Qt.QComboBox.addItems
void addItems(String [] items)
Definition
QComboBox.xcsm:37
Qt.QComboBox.create
bool create(@NotNilptr QWidget parent) override
Definition
QComboBox.xcsm:20
Qt.QComboBox.clear
void clear()
Definition
QComboBox.xcsm:40
Qt.QComboBox.getCurrentText
String getCurrentText()
Definition
QComboBox.xcsm:32
Qt.QComboBox.setCurrentIndex
void setCurrentIndex(int id)
Definition
QComboBox.xcsm:43
String
字符串类
Definition
BuiltinObjects.x:65
制作者
1.9.8