xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
Qt5
Qt5
qt5
widgets
QPrintDialog.xcsm
浏览该文件的文档.
1
//xlang Source, Name:QPrintDialog.xcsm
2
//Date: Sat Aug 13:20:50 2019
3
4
package
Qt{
5
@SuppressWarnings public class QPrintDialog : QAbstractPrintDialog{
6
public QPrintDialog(){
7
8
}
9
10
public QPrintDialog(@NotNilptr QPrinter pprinter) throws IllegalArgumentException{
11
if (false == create(nilptr, pprinter)){
12
throw new IllegalArgumentException("can not new QPrintDialog");
13
}
14
}
15
16
public
QPrintDialog
(@NotNilptr QWidget parent)
throws
IllegalArgumentException
{
17
if
(
false
== create(parent)){
18
throw
new
IllegalArgumentException
(
"can not new QPrintDialog"
);
19
}
20
}
21
22
public
QPrintDialog
(@NotNilptr QWidget parent, @NotNilptr QPrinter pprinter)
throws
IllegalArgumentException
{
23
if
(
false
== create(parent, pprinter)){
24
throw
new
IllegalArgumentException
(
"can not new QPrintDialog"
);
25
}
26
}
27
28
public
QPrintDialog
(
long
handle){
29
super(handle);
30
}
31
32
public
bool
create
()
override
{
33
nativehandle = QtXnl.createQPObject(QType.qtPrintDialog,
this
, 0, 0, 0, 0, 0);
34
if
(nativehandle == 0){
35
return
false
;
36
}
37
return
true
;
38
}
39
40
public
bool
create
(@NotNilptr QWidget parent)
override
{
41
nativehandle = QtXnl.createQPObject(QType.qtPrintDialog,
this
, parent.nativehandle, 0, 0, 0, 0);
42
if
(nativehandle == 0){
43
return
false
;
44
}
45
return
true
;
46
}
47
48
public
bool
create
(QWidget parent,@NotNilptr QPrinter printer){
49
nativehandle = QtXnl.createQPObject(QType.qtPrintDialog,
this
, parent == nilptr ? 0 : parent.nativehandle, printer.nativehandle, 0, 0, 0);
50
if
(nativehandle == 0){
51
return
false
;
52
}
53
return
true
;
54
}
55
56
57
public
void
setOption
(PrintDialogOption option,
bool
on){
58
QtXnl.widget_set_int_bool_value(nativehandle, Constant.PRTDLGSETOPT, option, on);
59
}
60
61
public
bool
testOption
(PrintDialogOption option){
62
return
QtXnl.widget_get_int_bool(nativehandle, Constant.PRTDLGTEST, option);
63
}
64
65
public
void
setOptions
(
int
options){
66
QtXnl.widget_set_vint_value(nativehandle, Constant.PRTDLGSETOPTS, options);
67
}
68
69
public
int
options
(){
70
return
QtXnl.widget_get_int_value(nativehandle, Constant.PRTDLGGETOPTS);
71
}
72
};
73
};
IllegalArgumentException
参数异常
Definition
BuiltinObjects.x:501
Qt.QPrintDialog.setOption
void setOption(PrintDialogOption option, bool on)
Definition
QPrintDialog.xcsm:57
Qt.QPrintDialog.QPrintDialog
QPrintDialog(@NotNilptr QWidget parent)
Definition
QPrintDialog.xcsm:16
Qt.QPrintDialog.create
bool create() override
Definition
QPrintDialog.xcsm:32
Qt.QPrintDialog.options
int options()
Definition
QPrintDialog.xcsm:69
Qt.QPrintDialog.create
bool create(QWidget parent,@NotNilptr QPrinter printer)
Definition
QPrintDialog.xcsm:48
Qt.QPrintDialog.create
bool create(@NotNilptr QWidget parent) override
Definition
QPrintDialog.xcsm:40
Qt.QPrintDialog.QPrintDialog
QPrintDialog(long handle)
Definition
QPrintDialog.xcsm:28
Qt.QPrintDialog.setOptions
void setOptions(int options)
Definition
QPrintDialog.xcsm:65
Qt.QPrintDialog.QPrintDialog
QPrintDialog(@NotNilptr QWidget parent, @NotNilptr QPrinter pprinter)
Definition
QPrintDialog.xcsm:22
Qt.QPrintDialog.testOption
bool testOption(PrintDialogOption option)
Definition
QPrintDialog.xcsm:61
制作者
1.9.8