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

Public 成员函数

额外继承的成员函数

详细描述

在文件 QToolBar.xcsm5 行定义.

构造及析构函数说明

◆ QToolBar() [1/2]

QToolBar ( )

在文件 QToolBar.xcsm6 行定义.

6 {
7
8 }

◆ QToolBar() [2/2]

QToolBar ( long  handle)

在文件 QToolBar.xcsm10 行定义.

10 {
11 super(handle);
12 }

成员函数说明

◆ addAction()

void addAction ( @NotNilptr QAction  action)
override

重载 QWidget .

在文件 QToolBar.xcsm37 行定义.

37 {
38 QtXnl.widget_set_intlongint_value(nativehandle, Constant.TOOLBARADDACTION, action.nativehandle, 0, 0);
39 }

◆ addSeparator()

QAction addSeparator ( )

在文件 QToolBar.xcsm45 行定义.

45 {
46 return (QAction) QtXnl.widget_get_object(nativehandle, Constant.TOOLBARADDSEPAR);
47 }

◆ addWidget()

void addWidget ( @NotNilptr QWidget  widget)

在文件 QToolBar.xcsm29 行定义.

29 {
30 QtXnl.widget_set_intlongint_value(nativehandle, Constant.TOOLBARADDWIDGET, widget.nativehandle, 0, 0);
31 }

◆ create() [1/2]

bool create ( )
override

重载 QWidget .

在文件 QToolBar.xcsm13 行定义.

13 {
14 nativehandle = QtXnl.createQObject(QType.qtToolbar, this, 0);
15 if (nativehandle == 0){
16 return false;
17 }
18 return true;
19 }
long nativehandle
Definition QNative.xcsm:91

◆ create() [2/2]

bool create ( @NotNilptr QWidget  parent)
override

重载 QWidget .

在文件 QToolBar.xcsm21 行定义.

21 {
22 nativehandle = QtXnl.createQObject(QType.qtToolbar, this, parent.nativehandle);
23 if (nativehandle == 0){
24 return false;
25 }
26 return true;
27 }

◆ insertWidget()

void insertWidget ( @NotNilptr QAction  action,
@NotNilptr QWidget  widget 
)

在文件 QToolBar.xcsm33 行定义.

33 {
34 QtXnl.void_long2(nativehandle, Constant.TOOLBARINSWIDGET, action.nativehandle, widget.nativehandle);
35 }

◆ removeAction()

void removeAction ( @NotNilptr QAction  action)

在文件 QToolBar.xcsm41 行定义.

41 {
42 QtXnl.widget_set_intlongint_value(nativehandle, Constant.TOOLBARREMACTION, action.nativehandle, 0, 0);
43 }

◆ setIconSize()

void setIconSize ( int  cx,
int  cy 
)

在文件 QToolBar.xcsm49 行定义.

49 {
50 QtXnl.widget_set_v2int_value(nativehandle, Constant.SETICONSIZE, cx, cy);
51 }