Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QPrintDialog Class Reference
[QtGui module]

The QPrintDialog class provides a dialog for specifying the printer's configuration. More...

#include <QPrintDialog>

Inherits QAbstractPrintDialog.

Public Functions

Additional Inherited Members


Detailed Description

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 ...
    }
Screenshot of a Plastique style printer dialog
A printer dialog in Plastique style

Member Function Documentation

QPrintDialog::QPrintDialog ( QPrinter * printer, QWidget * parent = 0 )

Constructs a new modal printer dialog for the given printer with the given parent.

QPrintDialog::~QPrintDialog ()

Destroys the object and frees any allocated resources. Does not delete the associated QPrinter object.


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0
Hosted by uCoz