QPageSetupDialog Class
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 = Q_NULLPTR) | |
QPageSetupDialog(QWidget *parent = Q_NULLPTR) | |
~QPageSetupDialog() | |
void | open(QObject *receiver, const char *member) |
QPrinter * | printer() |
重新实现的公有函数
virtual void | done(int result) |
virtual int | exec() |
virtual void | setVisible(bool visible) |
其他继承的成员
- 2 个属性继承自 QDialog
- 59 个属性继承自 QWidget
- 5 个公有槽函数继承自 QDialog
- 19 个公有槽函数继承自 QWidget
- 3 个信号继承自 QDialog
- 3 个信号继承自 QWidget
- 5 个静态公有成员继承自 QWidget
- 6 个受保护的函数继承自 QDialog
- 35 个受保护的函数继承自 QWidget
- 1 个受保护的槽函数继承自 QWidget
详细描述
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.
成员函数
QPageSetupDialog::QPageSetupDialog(QPrinter *printer, QWidget *parent = Q_NULLPTR)
Constructs a page setup dialog that configures printer with parent as the parent widget.
QPageSetupDialog::QPageSetupDialog(QWidget *parent = Q_NULLPTR)
Constructs a page setup dialog that configures a default-constructed QPrinter with parent as the parent widget.
This function was introduced in Qt 4.5.
参见 printer().
QPageSetupDialog::~QPageSetupDialog()
Destroys the page setup dialog.
[virtual]
void QPageSetupDialog::done(int result)
Reimplemented from QDialog::done().
[virtual]
int QPageSetupDialog::exec()
Reimplemented from QDialog::exec().
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.
This function was introduced in Qt 4.5.
QPrinter *QPageSetupDialog::printer()
Returns the printer that was passed to the QPageSetupDialog constructor.
[virtual]
void QPageSetupDialog::setVisible(bool visible)
Reimplemented from QWidget::setVisible().