The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. More...
Header: | #include <QPageSetupDialog> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS PrintSupport) target_link_libraries(mytarget PRIVATE Qt6::PrintSupport) |
qmake: | QT += printsupport |
Inherits: | QDialog |
QPageSetupDialog(QWidget *parent = nullptr) | |
QPageSetupDialog(QPrinter *printer, QWidget *parent = nullptr) | |
virtual | ~QPageSetupDialog() |
void | open(QObject *receiver, const char *member) |
QPrinter * | printer() |
virtual void | done(int result) override |
virtual int | exec() override |
virtual void | setVisible(bool visible) override |
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 QPrinter and QPrintDialog.
Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget.
See also printer().
Constructs a page setup dialog that configures printer with parent as the parent widget.
[virtual]
QPageSetupDialog::~QPageSetupDialog()Destroys the page setup dialog.
[override virtual]
void QPageSetupDialog::done(int result)Reimplements: QDialog::done(int r).
[override virtual]
int QPageSetupDialog::exec()Reimplements: QDialog::exec().
This virtual function is called to pop up the dialog. It must be reimplemented in subclasses.
This is an overloaded function.
Opens the dialog and connects its accepted() signal to the slot specified by receiver and member.
The signal will be disconnected from the slot when the dialog is closed.
Returns the printer that was passed to the QPageSetupDialog constructor.
[override virtual]
void QPageSetupDialog::setVisible(bool visible)Reimplements: QDialog::setVisible(bool visible).
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: