◆ QMenuBar() [1/2]
◆ QMenuBar() [2/2]
◆ addAction()
| QAction addAction |
( |
String |
action | ) |
|
在文件 QMenuBar.xcsm 第 28 行定义.
28 {
29 return (QAction)QtXnl.object_get_string(nativehandle, Constant.ADDACTION, action);
30 }
◆ addMenu() [1/2]
| QAction addMenu |
( |
@NotNilptr QMenu |
menu | ) |
|
在文件 QMenuBar.xcsm 第 32 行定义.
32 {
33 return (QAction)QtXnl.object_get_handle(nativehandle, Constant.ADDMENU, menu.nativehandle);
34 }
◆ addMenu() [2/2]
在文件 QMenuBar.xcsm 第 36 行定义.
36 {
37 return (QMenu)QtXnl.object_get_string2(nativehandle, Constant.ADDMENU, icon, title);
38 }
◆ addSeparator()
在文件 QMenuBar.xcsm 第 60 行定义.
60 {
61 return (QAction) QtXnl.widget_get_object(nativehandle, Constant.MENUBARADDSEPAR);
62 }
◆ clear()
在文件 QMenuBar.xcsm 第 48 行定义.
48 {
49 QtXnl.widget_slot(nativehandle, Constant.MENUBAR_CLR);
50 }
◆ create() [1/2]
重载 QWidget .
在文件 QMenuBar.xcsm 第 8 行定义.
8 {
9 nativehandle = QtXnl.createQObject(QType.qtMenuBar,
this, 0);
10 if (nativehandle == 0){
11 return false;
12 }
13 return true;
14 }
◆ create() [2/2]
| bool create |
( |
@NotNilptr QWidget |
parent | ) |
|
|
override |
重载 QWidget .
在文件 QMenuBar.xcsm 第 16 行定义.
16 {
17 nativehandle = QtXnl.createQObject(QType.qtMenuBar,
this, parent.nativehandle);
18 if (nativehandle == 0){
19 return false;
20 }
21 return true;
22 }
◆ insertMenu()
| QAction insertMenu |
( |
@NotNilptr QAction |
before, |
|
|
@NotNilptr QMenu |
menu |
|
) |
| |
◆ insertSeparator()
| QAction insertSeparator |
( |
@NotNilptr QAction |
before | ) |
|
在文件 QMenuBar.xcsm 第 40 行定义.
40 {
41 return (QAction) QtXnl.object_get_handle(nativehandle, Constant.INSSEP, before.nativehandle);
42 }
◆ isDefaultUp()
在文件 QMenuBar.xcsm 第 52 行定义.
52 {
53 return QtXnl.widget_get_bool_value(nativehandle, Constant.ISDEFUP);
54 }
◆ isNativeMenuBar()
在文件 QMenuBar.xcsm 第 56 行定义.
56 {
57 return QtXnl.widget_get_bool_value(nativehandle, Constant.ISNAMBR);
58 }