PySide.QtGui.QPageSetupDialog class provides a configuration dialog for the page-related options on a printer.
On Windows and Mac OS X the page setup dialog is implemented using the native page setup dialogs.
Note that on Windows and Mac OS X custom paper sizes won't be reflected in the native page setup dialogs. Additionally, custom page margins set on a PySide.QtGui.QPrinter won't show in the native Mac OS X page setup dialog.
In Symbian, there is no support for printing. Hence, this dialog should not be used in Symbian.
| 参数: |
|
|---|
Constructs a page setup dialog that configures printer with parent as the parent widget.
Constructs a page setup dialog that configures a default-constructed PySide.QtGui.QPrinter with parent as the parent widget.
Used to specify options to the page setup dialog
该值从 Qt 4.5 起已过时且什么都不做:
| 常量 | 描述 |
|---|---|
| QPageSetupDialog.DontUseSheet | In previous versions of QDialog.exec() the page setup dialog would create a sheet by default if the dialog was given a parent. This is no longer supported from Qt 4.5. If you want to use sheets, use QPageSetupDialog.open() 代替。 |
| 参数: | option – PySide.QtGui.QPageSetupDialog.PageSetupDialogOption |
|---|
Use setOption( option , true) 代替。
| 返回类型: | PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions |
|---|
| 参数: | option – PySide.QtGui.QPageSetupDialog.PageSetupDialogOption |
|---|---|
| 返回类型: | PySide.QtCore.bool |
Use testOption( option ) 取而代之。
| 参数: |
|
|---|
这是重载函数。
打开对话框并连接其 PySide.QtGui.QDialog.accepted() signal to the slot specified by receiver and member .
信号将断开槽连接,当对话框被关闭时。
| 返回类型: | PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions |
|---|
This property holds the various options that affect the look and feel of the dialog.
默认情况下,所有选项是被禁用的。
Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).
| 参数: | options – PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions |
|---|
| 参数: |
|
|---|
设置给定 option to be enabled if on is true; otherwise, clears the given option .
| 参数: | options – PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions |
|---|
This property holds the various options that affect the look and feel of the dialog.
默认情况下,所有选项是被禁用的。
Options should be set before showing the dialog. Setting them while the dialog is visible is not guaranteed to have an immediate effect on the dialog (depending on the option and on the platform).
| 参数: | option – PySide.QtGui.QPageSetupDialog.PageSetupDialogOption |
|---|---|
| 返回类型: | PySide.QtCore.bool |
Returns true if the given option 被启用;否则,返回 false。