QPageSetupDialog Class

The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer. More...

Header: #include <QPageSetupDialog>
qmake: QT += printsupport
Inherits: QDialog

Public Functions

QPageSetupDialog(QPrinter *printer, QWidget *parent = Q_NULLPTR)
QPageSetupDialog(QWidget *parent = Q_NULLPTR)
~QPageSetupDialog()
void open(QObject *receiver, const char *member)
QPrinter *printer()

Reimplemented Public Functions

virtual void done(int result)
virtual int exec()
virtual void setVisible(bool visible)
  • 8 public functions inherited from QDialog
  • 211 public functions inherited from QWidget
  • 31 public functions inherited from QObject
  • 14 public functions inherited from QPaintDevice

Additional Inherited Members

  • 2 properties inherited from QDialog
  • 58 properties inherited from QWidget
  • 1 property inherited from QObject
  • 5 public slots inherited from QDialog
  • 19 public slots inherited from QWidget
  • 1 public slot inherited from QObject
  • 3 signals inherited from QDialog
  • 3 signals inherited from QWidget
  • 2 signals inherited from QObject
  • 5 static public members inherited from QWidget
  • 11 static public members inherited from QObject
  • 7 protected functions inherited from QDialog
  • 35 protected functions inherited from QWidget
  • 9 protected functions inherited from QObject
  • 1 protected function inherited from QPaintDevice
  • 1 protected slot inherited from QWidget

Detailed Description

The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer.

On Windows and OS X the page setup dialog is implemented using the native page setup dialogs.

Note that on Windows and OS X 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 OS X page setup dialog.

See also QPrinter and QPrintDialog.

Member Function Documentation

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.

See also 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().

© 2016 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.