CopperSpice API  1.7.2
QPrinterInfo Class Reference

The QPrinterInfo class gives access to information about existing printers. More...

Public Methods

 QPrinterInfo ()
 
 QPrinterInfo (const QPrinter &printer)
 
 QPrinterInfo (const QPrinterInfo &other)
 
 ~QPrinterInfo ()
 
QPrinter::DuplexMode defaultDuplexMode () const
 
QPageSize defaultPageSize () const
 
QString description () const
 
bool isDefault () const
 
bool isNull () const
 
bool isRemote () const
 
QString location () const
 
QString makeAndModel () const
 
QPageSize maximumPhysicalPageSize () const
 
QPageSize minimumPhysicalPageSize () const
 
QPrinterInfo & operator= (const QPrinterInfo &other)
 
QString printerName () const
 
QPrinter::PrinterState state () const
 
QList< QPrinter::DuplexModesupportedDuplexModes () const
 
QList< QPageSizesupportedPageSizes () const
 
QList< int > supportedResolutions () const
 
bool supportsCustomPageSizes () const
 

Static Public Methods

static QStringList availablePrinterNames ()
 
static QList< QPrinterInfo > availablePrinters ()
 
static QPrinterInfo defaultPrinter ()
 
static QString defaultPrinterName ()
 
static QPrinterInfo printerInfo (const QString &printerName)
 

Friends

class QPlatformPrinterSupport
 

Detailed Description

The QPrinterInfo class gives access to information about existing printers.

Use the static functions to generate a list of QPrinterInfo objects. Each QPrinterInfo object in the list represents a single printer and can be queried for name, supported paper sizes, and whether or not it is the default printer.

See also
isNull()

Constructor & Destructor Documentation

QPrinterInfo::QPrinterInfo ( )

Constructs an empty QPrinterInfo object.

See also
isNull()
QPrinterInfo::QPrinterInfo ( const QPrinterInfo &  other)

Constructs a new QPrinterInfrom from other.

QPrinterInfo::QPrinterInfo ( const QPrinter printer)
explicit

Constructs a QPrinterInfo object from printer.

QPrinterInfo::~QPrinterInfo ( )

Destroys the QPrinterInfo object. References to the values in the object become invalid.

Method Documentation

QStringList QPrinterInfo::availablePrinterNames ( )
static

Documentation pending.

QList< QPrinterInfo > QPrinterInfo::availablePrinters ( )
static

Returns a list of available printers on the system.

QPrinter::DuplexMode QPrinterInfo::defaultDuplexMode ( ) const

Documentation pending.

QPageSize QPrinterInfo::defaultPageSize ( ) const

Documentation pending.

QPrinterInfo QPrinterInfo::defaultPrinter ( )
static

Returns the default printer on the system.

The return value should be checked using isNull() before being used, in case there is no default printer.

See also
isNull()
QString QPrinterInfo::defaultPrinterName ( )
static

Documentation pending.

QString QPrinterInfo::description ( ) const

Documentation pending.

bool QPrinterInfo::isDefault ( ) const

Returns whether this printer is the default printer.

bool QPrinterInfo::isNull ( ) const

Returns whether this QPrinterInfo object holds a printer definition.

An empty QPrinterInfo object could result for example from calling defaultPrinter() when there are no printers on the system.

bool QPrinterInfo::isRemote ( ) const

Documentation pending.

QString QPrinterInfo::location ( ) const

Documentation pending.

QString QPrinterInfo::makeAndModel ( ) const

Documentation pending.

QPageSize QPrinterInfo::maximumPhysicalPageSize ( ) const

Documentation pending.

QPageSize QPrinterInfo::minimumPhysicalPageSize ( ) const

Documentation pending.

QPrinterInfo & QPrinterInfo::operator= ( const QPrinterInfo &  other)

Sets the QPrinterInfo object to be equal to other.

QPrinterInfo QPrinterInfo::printerInfo ( const QString printerName)
static

Documentation pending.

QString QPrinterInfo::printerName ( ) const

Returns the name of the printer.

See also
QPrinter::setPrinterName()
QPrinter::PrinterState QPrinterInfo::state ( ) const

Documentation pending.

QList< QPrinter::DuplexMode > QPrinterInfo::supportedDuplexModes ( ) const

Documentation pending.

QList< QPageSize > QPrinterInfo::supportedPageSizes ( ) const

Documentation pending.

QList< int > QPrinterInfo::supportedResolutions ( ) const

Documentation pending.

bool QPrinterInfo::supportsCustomPageSizes ( ) const

Documentation pending.