Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

QAbstractPrintDialog Class Reference

The QAbstractPrintDialog class provides a base implementation for print dialogs used to configure printers. More...

#include <QAbstractPrintDialog>

Part of the QtGui module.

Inherits QDialog.

Public Types

Public Functions

Additional Inherited Members


Detailed Description

The QAbstractPrintDialog class provides a base implementation for print dialogs used to configure printers.


Member Type Documentation

enum QAbstractPrintDialog::PrintDialogOption
flags QAbstractPrintDialog::PrintDialogOptions

Used to specify which parts of the print dialog should be enabled.

\itemNone None of the options are enabled. \item PrintToFile The print to file option is enabled. \item PrintSelection The print selection option is enalbed. \item PrintPageRange The page range selection option is enabled. \item PrintCollateCopies };

The PrintDialogOptions type stores an OR combination of PrintDialogOption values.

enum QAbstractPrintDialog::PrintRange

Used to specify the print range selection option.

\itemAllPages All pages should be printed. \item Selection Only the selection should be printed. \item PageRange The specified page range should be printed.


Member Function Documentation

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

Constructs an abstract print dialog for printer with parent as parent widget

void QAbstractPrintDialog::addEnabledOption ( PrintDialogOption option )

Adds the option option to the set of enabled options in this dialog.

PrintDialogOptions QAbstractPrintDialog::enabledOptions () const

Returns the set of enabled options in this dialog.

int QAbstractPrintDialog::exec ()   [pure virtual]

int QAbstractPrintDialog::fromPage () const

Returns the first page to be printed

bool QAbstractPrintDialog::isOptionEnabled ( PrintDialogOption option ) const

Returns true if the option option is enabled; otherwise returns false

int QAbstractPrintDialog::maxPage () const

Returns the maximum page in the page range.

int QAbstractPrintDialog::minPage () const

Returns the minimum page in the page range.

PrintRange QAbstractPrintDialog::printRange () const

Returns the print range.

QPrinter * QAbstractPrintDialog::printer () const

Returns the printer that this printer dialog operates on.

void QAbstractPrintDialog::setEnabledOptions ( PrintDialogOptions options )

Sets the set of options that should be enabled in the print dialog to options.

void QAbstractPrintDialog::setFromTo ( int from, int to )

Sets the range in the print dialog to be from from to to.

void QAbstractPrintDialog::setMinMax ( int min, int max )

Sets the page range in this dialog to be from min to max. This also enables the PrintPageRange option.

void QAbstractPrintDialog::setPrintRange ( PrintRange range )

Sets the print range option in to be range.

int QAbstractPrintDialog::toPage () const

Returns the last page to be printed.


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-rc1