xlang
v4.0 Release
程序设计语言基础库文档
Toggle main menu visibility
首页
包
Package List
数据类型
数据类型列表
数据类型索引
设计单元层次结构
数据项
全部
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
函数/子程序
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
变量
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
文件
文件列表
•
全部
结构体
命名空间
文件
函数
变量
页
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QLabel.xcsm
浏览该文件的文档.
1
package
Qt{
2
@SuppressWarnings public class QLabel : QFrame{
3
public QLabel(){
4
5
}
3
public QLabel() {
…
}
6
7
public QLabel(long handle){
8
super(handle);
9
}
7
public QLabel(long handle) {
…
}
10
11
public
bool
create
()
override
{
12
nativehandle = QtXnl.createQObject(QType.qtLabel,
this
, 0);
13
if
(nativehandle == 0){
14
return
false
;
15
}
16
return
true
;
17
}
11
public
bool
create
()
override
{
…
}
18
19
public
bool
create
(@NotNilptr QWidget parent)
override
{
20
nativehandle = QtXnl.createQObject(QType.qtLabel,
this
, parent.nativehandle);
21
if
(nativehandle == 0){
22
return
false
;
23
}
24
return
true
;
25
}
19
public
bool
create
(@NotNilptr QWidget parent)
override
{
…
}
26
public
void
setText
(
String
text){
27
QtXnl.widget_slot_string(nativehandle, Constant.LBLSETTEXT, text);
28
}
26
public
void
setText
(
String
text) {
…
}
29
public
int
alignment
() {
30
return
QtXnl.widget_get_int_value(nativehandle, Constant.QLABEL_GETALIGNMENT);
31
}
29
public
int
alignment
() {
…
}
32
public
void
setAlignment
(
int
a){
33
QtXnl.widget_set_vint_value(nativehandle, Constant.QLABEL_SETALIGNMENT, a);
34
}
32
public
void
setAlignment
(
int
a) {
…
}
35
@NotNilptr
36
public
String
getText
(){
37
String
__txt = (
String
)QtXnl.core_getString(nativehandle, Constant.LBLGETTEXT);
38
__nilptr_safe(__txt);
39
return
__txt;
40
}
36
public
String
getText
() {
…
}
41
public
void
setScaledContents
(
bool
b){
42
QtXnl.widget_set_bool_value(nativehandle, Constant.LBLSETSCALEDCONTENTS, b);
43
}
41
public
void
setScaledContents
(
bool
b) {
…
}
44
public
void
setPixmap
(QImage img){
45
QtXnl.widget_set_native_value(nativehandle, Constant.LBLSETSETPIXMAP, img.himage);
46
}
44
public
void
setPixmap
(QImage img) {
…
}
47
};
2
@SuppressWarnings public class QLabel : QFrame {
…
};
48
};
Qt.QLabel.setAlignment
void setAlignment(int a)
Definition
QLabel.xcsm:32
Qt.QLabel.setText
void setText(String text)
Definition
QLabel.xcsm:26
Qt.QLabel.setScaledContents
void setScaledContents(bool b)
Definition
QLabel.xcsm:41
Qt.QLabel.create
bool create() override
Definition
QLabel.xcsm:11
Qt.QLabel.create
bool create(@NotNilptr QWidget parent) override
Definition
QLabel.xcsm:19
Qt.QLabel.setPixmap
void setPixmap(QImage img)
Definition
QLabel.xcsm:44
Qt.QLabel.alignment
int alignment()
Definition
QLabel.xcsm:29
Qt.QLabel.getText
String getText()
Definition
QLabel.xcsm:36
String
字符串类
Definition
BuiltinObjects.x:65
制作者
1.9.8