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

Public 成员函数

额外继承的成员函数

详细描述

在文件 QMenuBar.xcsm3 行定义.

构造及析构函数说明

◆ QMenuBar() [1/2]

QMenuBar ( )

在文件 QMenuBar.xcsm4 行定义.

4 {
5
6 }

◆ QMenuBar() [2/2]

QMenuBar ( long  handle)

在文件 QMenuBar.xcsm24 行定义.

24 {
25 super(handle);
26 }

成员函数说明

◆ addAction()

QAction addAction ( String  action)

在文件 QMenuBar.xcsm28 行定义.

28 {
29 return (QAction)QtXnl.object_get_string(nativehandle, Constant.ADDACTION, action);
30 }

◆ addMenu() [1/2]

QAction addMenu ( @NotNilptr QMenu  menu)

在文件 QMenuBar.xcsm32 行定义.

32 {
33 return (QAction)QtXnl.object_get_handle(nativehandle, Constant.ADDMENU, menu.nativehandle);
34 }

◆ addMenu() [2/2]

QMenu addMenu ( String  icon,
String  title 
)

在文件 QMenuBar.xcsm36 行定义.

36 {
37 return (QMenu)QtXnl.object_get_string2(nativehandle, Constant.ADDMENU, icon, title);
38 }

◆ addSeparator()

QAction addSeparator ( )

在文件 QMenuBar.xcsm60 行定义.

60 {
61 return (QAction) QtXnl.widget_get_object(nativehandle, Constant.MENUBARADDSEPAR);
62 }

◆ clear()

void clear ( )

在文件 QMenuBar.xcsm48 行定义.

48 {
49 QtXnl.widget_slot(nativehandle, Constant.MENUBAR_CLR);
50 }

◆ create() [1/2]

bool create ( )
override

重载 QWidget .

在文件 QMenuBar.xcsm8 行定义.

8 {
9 nativehandle = QtXnl.createQObject(QType.qtMenuBar, this, 0);
10 if (nativehandle == 0){
11 return false;
12 }
13 return true;
14 }
long nativehandle
Definition QNative.xcsm:91

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)
override

重载 QWidget .

在文件 QMenuBar.xcsm16 行定义.

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 
)

在文件 QMenuBar.xcsm44 行定义.

44 {
45 return (QAction) QtXnl.object_get_handle2(nativehandle, Constant.MENUBARINSMENU, before == nilptr ? 0l: before.nativehandle, menu.nativehandle);
46 }

◆ insertSeparator()

QAction insertSeparator ( @NotNilptr QAction  before)

在文件 QMenuBar.xcsm40 行定义.

40 {
41 return (QAction) QtXnl.object_get_handle(nativehandle, Constant.INSSEP, before.nativehandle);
42 }

◆ isDefaultUp()

bool isDefaultUp ( )

在文件 QMenuBar.xcsm52 行定义.

52 {
53 return QtXnl.widget_get_bool_value(nativehandle, Constant.ISDEFUP);
54 }

◆ isNativeMenuBar()

bool isNativeMenuBar ( )

在文件 QMenuBar.xcsm56 行定义.

56 {
57 return QtXnl.widget_get_bool_value(nativehandle, Constant.ISNAMBR);
58 }