QPageSetupDialogclass provides a configuration dialog for the page-related options on a printer. 更多 …
On Windows and macOS the page setup dialog is implemented using the native page setup dialogs.
Note that on Windows and macOS custom paper sizes won’t be reflected in the native page setup dialogs. Additionally, custom page margins set on a
QPrinterwon’t show in the native macOS page setup dialog.另请参阅
QPageSetupDialog
(
printer
[
,
parent=None
]
)
¶
QPageSetupDialog([parent=None])
- param parent
QWidget- param printer
Constructs a page setup dialog that configures
printer
with
parent
as the parent widget.
Constructs a page setup dialog that configures a default-constructed
QPrinter
with
parent
as the parent widget.
另请参阅
PySide2.QtPrintSupport.QPageSetupDialog.
open
(
receiver
,
member
)
¶
receiver
–
QObject
member – str
这是重载函数。
打开对话框并连接其
accepted()
signal to the slot specified by
receiver
and
member
.
信号将断开槽连接,当对话框被关闭时。
PySide2.QtPrintSupport.QPageSetupDialog.
printer
(
)
¶
Returns the printer that was passed to the
QPageSetupDialog
构造函数。