内容表

上一话题

QAbstractPrintDialog

下一话题

QPrintDialog

QPageSetupDialog

QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. 更多

Inheritance diagram of PySide2.QtPrintSupport.QPageSetupDialog

概要

函数

详细描述

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 QPrinter won’t show in the native macOS page setup dialog.

class QPageSetupDialog ( printer [ , parent=None ] )

QPageSetupDialog([parent=None])

param parent

QWidget

param printer

QPrinter

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.

另请参阅

printer()

PySide2.QtPrintSupport.QPageSetupDialog. open ( receiver , member )
参数
  • receiver QObject

  • member – str

这是重载函数。

打开对话框并连接其 accepted() signal to the slot specified by receiver and member .

信号将断开槽连接,当对话框被关闭时。

PySide2.QtPrintSupport.QPageSetupDialog. printer ( )
返回类型

QPrinter

Returns the printer that was passed to the QPageSetupDialog 构造函数。