PySide.QtGui.QPrinterInfo class gives access to information about existing printers.
使用静态函数以生成列表为 PySide.QtGui.QPrinterInfo 对象。每个 PySide.QtGui.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.
| 参数: |
|
|---|
构造空 PySide.QtGui.QPrinterInfo 对象。
构造 PySide.QtGui.QPrinterInfo object from printer .
构造副本为 other .
| 返回类型: |
|---|
Returns a list of available printers on the system.
| 返回类型: | PySide.QtGui.QPrinterInfo |
|---|
Returns the default printer on the system.
The return value should be checked using PySide.QtGui.QPrinterInfo.isNull() before being used, in case there is no default printer.
| 返回类型: | PySide.QtCore.bool |
|---|
Returns whether this printer is the default printer.
| 返回类型: | PySide.QtCore.bool |
|---|
Returns whether this PySide.QtGui.QPrinterInfo object holds a printer definition.
An empty PySide.QtGui.QPrinterInfo object could result for example from calling PySide.QtGui.QPrinterInfo.defaultPrinter() when there are no printers on the system.
| 返回类型: | unicode |
|---|
Returns the name of the printer.
| 返回类型: |
|---|
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.