xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QIcon.xcsm
浏览该文件的文档.
1//xlang Source, Name:QIcon.xcsm
2//Date: Thu Sep 23:07:39 2018
3package 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 }
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};
void finalize()
Definition QIcon.xcsm:28
QIcon(String file)
Definition QIcon.xcsm:21
QIcon(@NotNilptr byte [] data, int pos, int length)
Definition QIcon.xcsm:14
QIcon(@NotNilptr QByteArray array)
Definition QIcon.xcsm:8
字符串类