The 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.
Parameters: |
|
---|
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
This value is obsolete and does nothing since Qt 4.5:
Constant | Description |
---|---|
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() instead. |
Parameters: | option – PySide.QtGui.QPageSetupDialog.PageSetupDialogOption |
---|
Use setOption(option , true) instead.
Return type: | PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions |
---|
Use PySide.QtGui.QPageSetupDialog.options() instead.
Parameters: | option – PySide.QtGui.QPageSetupDialog.PageSetupDialogOption |
---|---|
Return type: | PySide.QtCore.bool |
Use testOption(option ) instead.
Parameters: |
|
---|
This is an overloaded function.
Opens the dialog and connects its PySide.QtGui.QDialog.accepted() signal to the slot specified by receiver and member .
The signal will be disconnected from the slot when the dialog is closed.
Return type: | PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions |
---|
This property holds the various options that affect the look and feel of the dialog.
By default, all options are disabled.
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).
Parameters: | options – PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions |
---|
Parameters: |
|
---|
Sets the given option to be enabled if on is true; otherwise, clears the given option .
Parameters: | options – PySide.QtGui.QPageSetupDialog.PageSetupDialogOptions |
---|
This property holds the various options that affect the look and feel of the dialog.
By default, all options are disabled.
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).
Parameters: | option – PySide.QtGui.QPageSetupDialog.PageSetupDialogOption |
---|---|
Return type: | PySide.QtCore.bool |
Returns true if the given option is enabled; otherwise, returns false.