xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数
QCore类 参考
类 QCore 继承关系图:
QNative QAbstractOpenGLFunctions QAudioDeviceInfo QAudioFormat QBuffer QByteArray QCefQuery QCefSetting QFont QIcon QLayoutItem QMatrix QObject QOpenGLFunctions QPaintDevice QPath QPropertyBrowser.QtBrowserItem QPropertyBrowser.QtProperty QSurfaceFormat QwtColumnSymbol QwtPlotGrid QwtPlotItem QwtScaleDraw QwtSymbol QwtText ReportEngine.ICallbackDatasource

Public 成员函数

静态 Public 成员函数

额外继承的成员函数

详细描述

在文件 QCore.xcsm2 行定义.

构造及析构函数说明

◆ QCore() [1/4]

QCore ( )

在文件 QCore.xcsm3 行定义.

3 {
4 }

◆ QCore() [2/4]

QCore ( int  type) throws IllegalArgumentException

在文件 QCore.xcsm5 行定义.

5 {
6 nativehandle = QtXnl.createQObject(type, this, 0);
7 if (nativehandle == 0) {
8 throw new IllegalArgumentException("can't new Object");
9 }
10 }
long nativehandle
Definition QNative.xcsm:91

◆ QCore() [3/4]

QCore ( int  type,
QNative  parent 
) throws IllegalArgumentException

在文件 QCore.xcsm11 行定义.

11 {
12 if (parent == nilptr) {
13 throw new IllegalArgumentException("parent is null");
14 }
15 nativehandle = QtXnl.createQObject(QType.qtWidget, this, parent.nativehandle);
16 if (nativehandle == 0) {
17 throw new IllegalArgumentException("can't new Object");
18 }
19 }

◆ QCore() [4/4]

QCore ( long  handle)

在文件 QCore.xcsm21 行定义.

21 {
22 super(handle);
23 }

成员函数说明

◆ getClipboardImage()

static QImage getClipboardImage ( )
static

在文件 QCore.xcsm55 行定义.

55 {
56 QImage img = nilptr;
57 long handle = QtXnl.object_get_long_int(0, Constant.CLIPBOARDIMAGE, 0, 0);
58 if (handle != 0) {
59 img = new QImage();
60 img.himage = handle;
61 }
62 return img;
63 }

◆ getClipboardText()

static String getClipboardText ( )
static

在文件 QCore.xcsm49 行定义.

49 {
50 return (String)QtXnl.core_getString(0, Constant.CLIPBOARDTEXT);
51 }
字符串类

◆ Notify() [1/2]

void Notify ( long  eventid)

在文件 QCore.xcsm40 行定义.

40 {
41 QtXnl.widget_set_native_value(nativehandle, Constant.XNOTIFY, eventid);
42 }

◆ Notify() [2/2]

void Notify ( long  eventid,
String  tag 
)

在文件 QCore.xcsm43 行定义.

43 {
44 QtXnl.long_longstring(nativehandle, Constant.XNOTIFY, eventid, tag);
45 }

◆ openLocal()

static bool openLocal ( String  url)
static

在文件 QCore.xcsm37 行定义.

37 {
38 return 0 != QtXnl.long_string2(0, Constant.OPENLOCAL, url, nilptr);
39 }

◆ openUrl()

static bool openUrl ( String  url)
static

在文件 QCore.xcsm34 行定义.

34 {
35 return 0 != QtXnl.long_string2(0, Constant.OPENURL, url, nilptr);
36 }

◆ setClipboardImage()

static void setClipboardImage ( @NotNilptr QImage  img)
static

在文件 QCore.xcsm52 行定义.

52 {
53 QtXnl.widget_set_native_value(0, Constant.CLIPBOARDIMAGE, img.himage);
54 }

◆ setClipboardText()

static void setClipboardText ( String  text)
static

在文件 QCore.xcsm46 行定义.

46 {
47 QtXnl.widget_slot_string(0, Constant.CLIPBOARDTEXT, text);
48 }

◆ subClass()

Object subClass ( @NotNilptr QCore  object)

在文件 QCore.xcsm25 行定义.

25 {
26 if (QtXnl.core_sub_class(nativehandle, this, object)) {
27 object.nativehandle = nativehandle;
28 nativehandle = 0;
29 return object;
30 }
31 return nilptr;
32 }