![]() |
Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. More...
#include <QPageSetupDialog>
Inherits QDialog.
The 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 QPrinter won't show in the native Mac OS X page setup dialog.
See also QPrinter and QPrintDialog.
Used to specify options to the page setup dialog
Constant | Value | Description |
---|---|---|
QPageSetupDialog::DontUseSheet | 0x00000001 | Do not make the native print dialog a sheet. By default on Mac OS X, the native dialog is made a sheet if it has a parent that can accept sheets and is visible. Internally, Mac OS X tracks whether a printing session and not which particular dialog should have a sheet or not. Therefore, make sure this value matches between the page setup dialog and the print dialog or you can potentially end up in a modal loop that you can't break. |
This enum was introduced in Qt 4.4.
The PageSetupDialogOptions type is a typedef for QFlags<PageSetupDialogOption>. It stores an OR combination of PageSetupDialogOption values.
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).
Access functions:
See also setOption() and testOption().
Constructs a page setup dialog that configures printer with parent as the parent widget.
Constructs a page setup dialog that configures a default-constructet QPrinter with parent as the parent widget.
See also printer().
This is an overloaded member function, provided for convenience.
###
Returns the printer that was passed to the QPageSetupDialog constructor.
Sets the given option to be enabled if on is true; otherwise, clears the given option.
See also options and testOption().
Returns true if the given option is enabled; otherwise, returns false.
See also options and setOption().
Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.5.0-tp1 |