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

Public 成员函数

包函数

额外继承的成员函数

详细描述

在文件 QIcon.xcsm4 行定义.

构造及析构函数说明

◆ QIcon() [1/4]

QIcon ( long  h)

在文件 QIcon.xcsm5 行定义.

5 {
6 super(h);
7 }

◆ QIcon() [2/4]

QIcon ( @NotNilptr QByteArray  array) throws IllegalArgumentException

在文件 QIcon.xcsm8 行定义.

8 {
9 nativehandle = QtXnl.createNObject(QType.qtIcon, array.nativehandle);
10 if (nativehandle == 0){
11 throw new IllegalArgumentException("can not create QIcon");
12 }
13 }
long nativehandle
Definition QNative.xcsm:91

◆ QIcon() [3/4]

QIcon ( @NotNilptr byte []  data,
int  pos,
int  length 
) throws IllegalArgumentException

在文件 QIcon.xcsm14 行定义.

14 {
15 QByteArray array = new QByteArray(data, pos, length);
16 nativehandle = QtXnl.createNObject(QType.qtIcon, array.nativehandle);
17 if (nativehandle == 0){
18 throw new IllegalArgumentException("can not create QIcon");
19 }
20 }

◆ QIcon() [4/4]

QIcon ( String  file) throws IllegalArgumentException

在文件 QIcon.xcsm21 行定义.

21 {
22 nativehandle = QtXnl.createSObject(QType.qtIcon, file);
23 if (nativehandle == 0){
24 throw new IllegalArgumentException("can not create QIcon");
25 }
26 }

成员函数说明

◆ finalize()

void finalize ( )
package

在文件 QIcon.xcsm28 行定义.

28 {
29 if (nativehandle != 0){
30 QtXnl.widget_slot(nativehandle, Constant.DELLOCICON);
31 }
32 }