QPageSetupDialog 類提供用於打印機頁麵相關選項的配置對話框。 更多...
| 頭: | #include <QPageSetupDialog> |
| qmake: | QT += printsupport |
| 繼承: | 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 |
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 a default-constructed QPrinter with parent as the parent widget.
該函數在 Qt 4.5 引入。
另請參閱 printer ().
Constructs a page setup dialog that configures printer with parent as the parent widget.
[虛擬]
QPageSetupDialog::
~QPageSetupDialog
()
Destroys the page setup dialog.
[override virtual]
void
QPageSetupDialog::
done
(
int
result
)
重實現: QDialog::done (int r).
[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 構造函數。