QPageSetupDialog 類

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 )

額外繼承成員

詳細描述

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.

該函數在 Qt 4.5 引入。

另請參閱 printer ().

QPageSetupDialog:: ~QPageSetupDialog ()

Destroys the page setup dialog.

[虛擬] void QPageSetupDialog:: done ( int result )

重實現自 QDialog::done ().

[虛擬] int QPageSetupDialog:: exec ()

重實現自 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 )

這是重載函數。

打開對話框並連接其 accepted () 信號到槽,指定通過 receiver and member .

將從槽斷開信號連接,當關閉對話框時。

該函數在 Qt 4.5 引入。

QPrinter *QPageSetupDialog:: printer ()

Returns the printer that was passed to the QPageSetupDialog 構造函數。

[虛擬] void QPageSetupDialog:: setVisible ( bool visible )

重實現自 QWidget::setVisible ().