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

Public 成员函数

额外继承的成员函数

详细描述

在文件 QAction.xcsm2 行定义.

构造及析构函数说明

◆ QAction() [1/2]

QAction ( )

在文件 QAction.xcsm3 行定义.

3 {
4 }

◆ QAction() [2/2]

QAction ( long  handle)

在文件 QAction.xcsm21 行定义.

21 {
22 super(handle);
23 }

成员函数说明

◆ create() [1/2]

bool create ( )

在文件 QAction.xcsm5 行定义.

5 {
6 nativehandle = QtXnl.createQObject(QType.qtAction, this, 0);
7 if (nativehandle == 0){
8 return false;
9 }
10 return true;
11 }
long nativehandle
Definition QNative.xcsm:91

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)

在文件 QAction.xcsm13 行定义.

13 {
14 nativehandle = QtXnl.createQObject(QType.qtAction, this, parent.nativehandle);
15 if (nativehandle == 0){
16 return false;
17 }
18 return true;
19 }

◆ getCheckable()

bool getCheckable ( )

在文件 QAction.xcsm80 行定义.

80 {
81 return QtXnl.widget_get_bool_value(nativehandle, Constant.CHECKABLE);
82 }

◆ getChecked()

bool getChecked ( )

在文件 QAction.xcsm72 行定义.

72 {
73 return QtXnl.widget_get_bool_value(nativehandle, Constant.CHECKED);
74 }

◆ getMenu()

QMenu getMenu ( )

在文件 QAction.xcsm56 行定义.

56 {
57 return (QMenu)QtXnl.widget_get_object(nativehandle, Constant.GETMENU);
58 }

◆ getText()

String getText ( )

在文件 QAction.xcsm49 行定义.

49 {
50 return (String)QtXnl.core_getString(nativehandle, Constant.ACTGETTEXT);
51 }
字符串类

◆ isSeparator()

bool isSeparator ( )

在文件 QAction.xcsm33 行定义.

33 {
34 return QtXnl.widget_get_bool_value(nativehandle, Constant.ISSEP);
35 }

◆ parentWidget()

QWidget parentWidget ( )

在文件 QAction.xcsm60 行定义.

60 {
61 return (QWidget)QtXnl.widget_get_object(nativehandle, Constant.PARENTWIDGET);
62 }

◆ setCheckable()

void setCheckable ( bool  b)

在文件 QAction.xcsm76 行定义.

76 {
77 QtXnl.widget_set_bool_value(nativehandle, Constant.CHECKABLE, b);
78 }

◆ setChecked()

void setChecked ( bool  b)

在文件 QAction.xcsm68 行定义.

68 {
69 QtXnl.widget_set_bool_value(nativehandle, Constant.CHECKED, b);
70 }

◆ setEnable()

void setEnable ( bool  b)

在文件 QAction.xcsm53 行定义.

53 {
54 QtXnl.widget_set_bool_value(nativehandle, Constant.ACTENABLED, b);
55 }

◆ setMenu()

void setMenu ( @NotNilptr QMenu  menu)

在文件 QAction.xcsm25 行定义.

25 {
26 QtXnl.widget_set_native_value(nativehandle, Constant.SETMENU, menu.nativehandle);
27 }

◆ setSeparator()

void setSeparator ( bool  b)

在文件 QAction.xcsm29 行定义.

29 {
30 QtXnl.widget_set_bool_value(nativehandle, Constant.SETSEP, b);
31 }

◆ setShortcut() [1/2]

void setShortcut ( int  StandardKey)

在文件 QAction.xcsm41 行定义.

41 {
42 QtXnl.widget_set_vint_value(nativehandle, Constant.SETSHRCUT, StandardKey);
43 }

◆ setShortcut() [2/2]

void setShortcut ( String  shortcutKey)

在文件 QAction.xcsm37 行定义.

37 {
38 QtXnl.widget_slot_string(nativehandle, Constant.SETSHRCUT, shortcutKey);
39 }

◆ setText()

void setText ( String  text)

在文件 QAction.xcsm45 行定义.

45 {
46 QtXnl.widget_slot_string(nativehandle, Constant.ACTSETTEXT, text);
47 }

◆ trigger()

void trigger ( )

在文件 QAction.xcsm64 行定义.

64 {
65 QtXnl.widget_slot(nativehandle, Constant.TRIGGER);
66 }