![]() |
Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions | ![]() |
The QPrintDialog class provides a dialog for specifying the printer's configuration. More...
#include <QPrintDialog>
Part of the QtGui module.
Inherits QAbstractPrintDialog.
The QPrintDialog class provides a dialog for specifying the printer's configuration.
It encompasses both the sort of details needed for doing a simple print-out and some print configuration setup.
Typical use of the QPrintDialog is to construct it on a QPrinter object and call exec() to execute it.
QPrintDialog printDialog(printer, parent); if (printDialog.exec() == QDialog::Accept) { // print ... }
The printer dialog in Motif style:
Constructs a new modal printer dialog for the given printer with the given parent.
Destroys the object and frees any allocated resources. Does not delete the associated QPrinter object.
Launches the print dialog.
Reimplemented from QAbstractPrintDialog.
See also QDialog::DialogCode, accept(), and reject().
Copyright © 2005 Trolltech | Trademarks | Qt 4.0.0-rc1 |