The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. 更多...
头: | #include <QPageSetupDialog> |
qmake: | QT += printsupport |
继承: | QDialog |
QPageSetupDialog (QPrinter * printer , QWidget * parent = nullptr) | |
QPageSetupDialog (QWidget * parent = nullptr) | |
virtual | ~QPageSetupDialog () |
void | open (QObject * receiver , const char * member ) |
QPrinter * | printer () |
virtual void | done (int result ) override |
virtual int | exec () override |
const QMetaObject | staticMetaObject |
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer.
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.
另请参阅 QPrinter and QPrintDialog .
Constructs a page setup dialog that configures printer with parent as the parent widget.
Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget.
该函数在 Qt 4.5 引入。
另请参阅 printer ().
[虚拟]
QPageSetupDialog::
~QPageSetupDialog
()
Destroys the page setup dialog.
[override virtual]
void
QPageSetupDialog::
done
(
int
result
)
重实现自 QDialog::done ().
[override virtual]
int
QPageSetupDialog::
exec
()
重实现自 QDialog::exec ().
This virtual function is called to pop up the dialog. It must be reimplemented in subclasses.
这是重载函数。
打开对话框并连接其 accepted () 信号到槽,指定通过 receiver and member .
将从槽断开信号连接,当关闭对话框时。
该函数在 Qt 4.5 引入。
Returns the printer that was passed to the QPageSetupDialog 构造函数。