xlang
v4.0 Release
程序设计语言基础库文档
Toggle main menu visibility
首页
包
Package List
数据类型
数据类型列表
数据类型索引
设计单元层次结构
数据项
全部
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
函数/子程序
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
变量
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
文件
文件列表
•
全部
结构体
命名空间
文件
函数
变量
页
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QAction.xcsm
浏览该文件的文档.
1
package
Qt{
2
@SuppressWarnings public class QAction : QObject{
3
public QAction(){
4
}
3
public QAction() {
…
}
5
public bool create(){
6
nativehandle = QtXnl.createQObject(QType.qtAction, this, 0);
7
if
(nativehandle == 0){
8
return
false
;
9
}
10
return
true
;
11
}
5
public bool create() {
…
}
12
13
public
bool
create
(@NotNilptr QWidget parent){
14
nativehandle = QtXnl.createQObject(QType.qtAction,
this
, parent.nativehandle);
15
if
(nativehandle == 0){
16
return
false
;
17
}
18
return
true
;
19
}
13
public
bool
create
(@NotNilptr QWidget parent) {
…
}
20
21
public
QAction
(
long
handle){
22
super(handle);
23
}
21
public
QAction
(
long
handle) {
…
}
24
25
public
void
setMenu
(@NotNilptr QMenu menu){
26
QtXnl.widget_set_native_value(nativehandle, Constant.SETMENU, menu.nativehandle);
27
}
25
public
void
setMenu
(@NotNilptr QMenu menu) {
…
}
28
29
public
void
setSeparator
(
bool
b){
30
QtXnl.widget_set_bool_value(nativehandle, Constant.SETSEP, b);
31
}
29
public
void
setSeparator
(
bool
b) {
…
}
32
33
public
bool
isSeparator
(){
34
return
QtXnl.widget_get_bool_value(nativehandle, Constant.ISSEP);
35
}
33
public
bool
isSeparator
() {
…
}
36
37
public
void
setShortcut
(
String
shortcutKey){
38
QtXnl.widget_slot_string(nativehandle, Constant.SETSHRCUT, shortcutKey);
39
}
37
public
void
setShortcut
(
String
shortcutKey) {
…
}
40
41
public
void
setShortcut
(
int
StandardKey){
42
QtXnl.widget_set_vint_value(nativehandle, Constant.SETSHRCUT, StandardKey);
43
}
41
public
void
setShortcut
(
int
StandardKey) {
…
}
44
45
public
void
setText
(
String
text){
46
QtXnl.widget_slot_string(nativehandle, Constant.ACTSETTEXT, text);
47
}
45
public
void
setText
(
String
text) {
…
}
48
49
public
String
getText
(){
50
return
(
String
)QtXnl.core_getString(nativehandle, Constant.ACTGETTEXT);
51
}
49
public
String
getText
() {
…
}
52
53
public
void
setEnable
(
bool
b){
54
QtXnl.widget_set_bool_value(nativehandle, Constant.ACTENABLED, b);
55
}
53
public
void
setEnable
(
bool
b) {
…
}
56
public
QMenu
getMenu
(){
57
return
(QMenu)QtXnl.widget_get_object(nativehandle, Constant.GETMENU);
58
}
56
public
QMenu
getMenu
() {
…
}
59
60
public
QWidget
parentWidget
(){
61
return
(QWidget)QtXnl.widget_get_object(nativehandle, Constant.PARENTWIDGET);
62
}
60
public
QWidget
parentWidget
() {
…
}
63
64
public
void
trigger
(){
65
QtXnl.widget_slot(nativehandle, Constant.TRIGGER);
66
}
64
public
void
trigger
() {
…
}
67
68
public
void
setChecked
(
bool
b){
69
QtXnl.widget_set_bool_value(nativehandle, Constant.CHECKED, b);
70
}
68
public
void
setChecked
(
bool
b) {
…
}
71
72
public
bool
getChecked
(){
73
return
QtXnl.widget_get_bool_value(nativehandle, Constant.CHECKED);
74
}
72
public
bool
getChecked
() {
…
}
75
76
public
void
setCheckable
(
bool
b){
77
QtXnl.widget_set_bool_value(nativehandle, Constant.CHECKABLE, b);
78
}
76
public
void
setCheckable
(
bool
b) {
…
}
79
80
public
bool
getCheckable
(){
81
return
QtXnl.widget_get_bool_value(nativehandle, Constant.CHECKABLE);
82
}
80
public
bool
getCheckable
() {
…
}
83
};
2
@SuppressWarnings public class QAction : QObject {
…
};
84
};
Qt.QAction.setShortcut
void setShortcut(String shortcutKey)
Definition
QAction.xcsm:37
Qt.QAction.setMenu
void setMenu(@NotNilptr QMenu menu)
Definition
QAction.xcsm:25
Qt.QAction.QAction
QAction(long handle)
Definition
QAction.xcsm:21
Qt.QAction.setChecked
void setChecked(bool b)
Definition
QAction.xcsm:68
Qt.QAction.setText
void setText(String text)
Definition
QAction.xcsm:45
Qt.QAction.getChecked
bool getChecked()
Definition
QAction.xcsm:72
Qt.QAction.setEnable
void setEnable(bool b)
Definition
QAction.xcsm:53
Qt.QAction.create
bool create(@NotNilptr QWidget parent)
Definition
QAction.xcsm:13
Qt.QAction.parentWidget
QWidget parentWidget()
Definition
QAction.xcsm:60
Qt.QAction.setShortcut
void setShortcut(int StandardKey)
Definition
QAction.xcsm:41
Qt.QAction.isSeparator
bool isSeparator()
Definition
QAction.xcsm:33
Qt.QAction.setSeparator
void setSeparator(bool b)
Definition
QAction.xcsm:29
Qt.QAction.getMenu
QMenu getMenu()
Definition
QAction.xcsm:56
Qt.QAction.trigger
void trigger()
Definition
QAction.xcsm:64
Qt.QAction.setCheckable
void setCheckable(bool b)
Definition
QAction.xcsm:76
Qt.QAction.getCheckable
bool getCheckable()
Definition
QAction.xcsm:80
Qt.QAction.getText
String getText()
Definition
QAction.xcsm:49
String
字符串类
Definition
BuiltinObjects.x:65
制作者
1.9.8