PySide6.QtPrintSupport.QPageSetupDialog¶
- class QPageSetupDialog¶
The
QPageSetupDialog
class provides a configuration dialog for the page-related options on a printer. More…Synopsis¶
Methods¶
def
__init__()
def
exec_()
def
open()
def
printer()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
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.See also
Constructs a page setup dialog that configures a default-constructed
QPrinter
withparent
as the parent widget.See also
Constructs a page setup dialog that configures
printer
withparent
as the parent widget.- exec_()¶
- Return type:
int
This is an overloaded function.
Opens the dialog and connects its accepted() signal to the slot specified by
receiver
andmember
.The signal will be disconnected from the slot when the dialog is closed.
Returns the printer that was passed to the
QPageSetupDialog
constructor.