xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QIcon.xcsm
浏览该文件的文档.
1
//xlang Source, Name:QIcon.xcsm
2
//Date: Thu Sep 23:07:39 2018
3
package
Qt{
4
@SuppressWarnings public class QIcon : QCore{
5
public QIcon(long h){
6
super(h);
7
}
8
public
QIcon
(@NotNilptr QByteArray array)
throws
IllegalArgumentException
{
9
nativehandle = QtXnl.createNObject(QType.qtIcon, array.nativehandle);
10
if
(nativehandle == 0){
11
throw
new
IllegalArgumentException
(
"can not create QIcon"
);
12
}
13
}
14
public
QIcon
(@NotNilptr
byte
[] data,
int
pos,
int
length)
throws
IllegalArgumentException
{
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
}
21
public
QIcon
(
String
file)
throws
IllegalArgumentException
{
22
nativehandle = QtXnl.createSObject(QType.qtIcon, file);
23
if
(nativehandle == 0){
24
throw
new
IllegalArgumentException
(
"can not create QIcon"
);
25
}
26
}
27
28
void
finalize
(){
29
if
(nativehandle != 0){
30
QtXnl.widget_slot(nativehandle, Constant.DELLOCICON);
31
}
32
}
33
};
34
};
IllegalArgumentException
参数异常
Definition
BuiltinObjects.x:501
Qt.QIcon.finalize
void finalize()
Definition
QIcon.xcsm:28
Qt.QIcon.QIcon
QIcon(String file)
Definition
QIcon.xcsm:21
Qt.QIcon.QIcon
QIcon(@NotNilptr byte [] data, int pos, int length)
Definition
QIcon.xcsm:14
Qt.QIcon.QIcon
QIcon(@NotNilptr QByteArray array)
Definition
QIcon.xcsm:8
String
字符串类
Definition
BuiltinObjects.x:65
制作者
1.9.8