The QPrinterInfo class gives access to information about existing printers. More...
#include <QPrinterInfo>
This class was introduced in Qt 4.4.
QPrinterInfo () | |
QPrinterInfo ( const QPrinterInfo & src ) | |
QPrinterInfo ( const QPrinter & printer ) | |
~QPrinterInfo () | |
bool | isDefault () const |
bool | isNull () const |
QString | printerName () const |
QList<QPrinter::PaperSize> | supportedPaperSizes () const |
QPrinterInfo & | operator= ( const QPrinterInfo & src ) |
QList<QPrinterInfo> | availablePrinters () |
QPrinterInfo | defaultPrinter () |
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.
Constructs an empty QPrinterInfo object.
See also isNull().
Constructs a copy of src.
Constructs a QPrinterInfo object from printer.
Destroys the QPrinterInfo object. References to the values in the object become invalid.
Returns a list of available printers on the system.
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().
Returns whether this printer is the default printer.
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.
Returns the name of the printer.
See also QPrinter::setPrinterName().
Returns a list of supported paper sizes by the printer.
Not all printer drivers support this query, so the list may be empty. On Mac OS X 10.3, this function always returns an empty list.
This function was introduced in Qt 4.4.
Sets the QPrinterInfo object to be equal to src.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.