Home · All Classes · Modules |
The QPrinterInfo class gives access to information about existing printers. More...
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 other.
This function was introduced in Qt 4.8.
Constructs a QPrinterInfo object from printer.
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.
PyQt 4.12.1 for X11 | Copyright © Riverbank Computing Ltd and The Qt Company 2015 | Qt 4.8.7 |