xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QLabel.xcsm
浏览该文件的文档.
1
package
Qt{
2
@SuppressWarnings public class QLabel : QFrame{
3
public QLabel(){
4
5
}
6
7
public QLabel(long handle){
8
super(handle);
9
}
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
}
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
}
26
public
void
setText
(
String
text){
27
QtXnl.widget_slot_string(nativehandle, Constant.LBLSETTEXT, text);
28
}
29
public
int
alignment
() {
30
return
QtXnl.widget_get_int_value(nativehandle, Constant.QLABEL_GETALIGNMENT);
31
}
32
public
void
setAlignment
(
int
a){
33
QtXnl.widget_set_vint_value(nativehandle, Constant.QLABEL_SETALIGNMENT, a);
34
}
35
@NotNilptr
36
public
String
getText
(){
37
String
__txt = (
String
)QtXnl.core_getString(nativehandle, Constant.LBLGETTEXT);
38
__nilptr_safe(__txt);
39
return
__txt;
40
}
41
public
void
setScaledContents
(
bool
b){
42
QtXnl.widget_set_bool_value(nativehandle, Constant.LBLSETSCALEDCONTENTS, b);
43
}
44
public
void
setPixmap
(QImage img){
45
QtXnl.widget_set_native_value(nativehandle, Constant.LBLSETSETPIXMAP, img.himage);
46
}
47
};
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