The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS PrintSupport) |
target_link_libraries(mytarget PRIVATE Qt6::PrintSupport)
|qmake:||QT += printsupport|
|QPageSetupDialog(QWidget *parent = nullptr)|
|QPageSetupDialog(QPrinter *printer, QWidget *parent = nullptr)|
|void||open(QObject *receiver, const char *member)|
|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.
Member Function Documentation
QPageSetupDialog::QPageSetupDialog(QWidget *parent = nullptr)
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.
Destroys the page setup dialog.
Reimplements: QDialog::done(int r).
This virtual function is called to pop up the dialog. It must be reimplemented in subclasses.
void QPageSetupDialog::open(QObject *receiver, const char *member)
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.
Reimplements: QDialog::setVisible(bool visible).
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.