Skip to content

PythonQt.QtGui.QPrinterInfo · declarations 001

Back to PythonQt.QtGui.QPrinterInfo

availablePrinterNames

availablePrinterNames() -> tuple

X.availablePrinterNames() -> tuple

Supplemental documentation: Qt 5 reference:

[static] QStringList QPrinterInfo::availablePrinterNames()

Returns a list of all the available Printer Names on this system.

It is recommended to use this instead of availablePrinters() as it will be faster on most systems.

Note that the list may become outdated if changes are made on the local system or remote print server. Only instantiate required QPrinterInfo instances when needed, and always check for validity before calling.

This function was introduced in Qt 5.3.

Upstream PySide2 reference signatures (binding differences may apply):

availablePrinterNames() -> typing.List[str]

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#availablePrinterNames

availablePrinters

availablePrinters() -> tuple

X.availablePrinters() -> tuple

Supplemental documentation: Qt 5 reference:

[static] QList\<QPrinterInfo> QPrinterInfo::availablePrinters()

Returns a list of QPrinterInfo objects for all the available printers on this system.

It is NOT recommended to use this as creating each printer instance may take a long time, especially if there are remote networked printers, and retained instances may become outdated if changes are made on the local system or remote print server. Use availablePrinterNames() instead and only instantiate printer instances as you need them.

Upstream PySide2 reference signatures (binding differences may apply):

availablePrinters() -> typing.List[PySide2.QtPrintSupport.QPrinterInfo]

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#availablePrinters

defaultDuplexMode

defaultDuplexMode() -> Any

X.defaultDuplexMode()

Supplemental documentation: Qt 5 reference:

QPrinter::DuplexMode QPrinterInfo::defaultDuplexMode() const

Returns the default duplex mode of this printer.

This function was introduced in Qt 5.4.

Upstream PySide2 reference signatures (binding differences may apply):

defaultDuplexMode(self) -> PySide2.QtPrintSupport.QPrinter.DuplexMode

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#defaultDuplexMode

defaultPageSize

defaultPageSize() -> Any

X.defaultPageSize() -> PythonQt.QtGui.QPageSize

Supplemental documentation: Qt 5 reference:

QPageSize QPrinterInfo::defaultPageSize() const

Returns the current default Page Size for this printer.

This function was introduced in Qt 5.3.

Upstream PySide2 reference signatures (binding differences may apply):

defaultPageSize(self) -> PySide2.QtGui.QPageSize

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#defaultPageSize

defaultPrinter

defaultPrinter() -> Any

X.defaultPrinter() -> PythonQt.QtGui.QPrinterInfo

Supplemental documentation: Qt 5 reference:

[static] QPrinterInfo QPrinterInfo::defaultPrinter()

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.

On some systems it is possible for there to be available printers but none of them set to be the default printer.

See also isNull(), isDefault(), and availablePrinters().

Upstream PySide2 reference signatures (binding differences may apply):

defaultPrinter() -> PySide2.QtPrintSupport.QPrinterInfo

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#defaultPrinter

defaultPrinterName

defaultPrinterName() -> str

X.defaultPrinterName() -> str

Supplemental documentation: Qt 5 reference:

[static] QString QPrinterInfo::defaultPrinterName()

Returns the current default printer name.

This function was introduced in Qt 5.3.

Upstream PySide2 reference signatures (binding differences may apply):

defaultPrinterName() -> str

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#defaultPrinterName

description

description() -> str

X.description() -> str

Supplemental documentation: Qt 5 reference:

QString QPrinterInfo::description() const

Returns the human-readable description of the printer.

This function was introduced in Qt 5.0.

See also QPrinterInfo::printerName().

Upstream PySide2 reference signatures (binding differences may apply):

description(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#description

isDefault

isDefault() -> bool

X.isDefault() -> bool

Supplemental documentation: Qt 5 reference:

bool QPrinterInfo::isDefault() const

Returns whether this printer is currently the default printer.

Upstream PySide2 reference signatures (binding differences may apply):

isDefault(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#isDefault

isNull

isNull() -> bool

X.isNull() -> bool

Supplemental documentation: Qt 5 reference:

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.

Upstream PySide2 reference signatures (binding differences may apply):

isNull(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#isNull

isRemote

isRemote() -> bool

X.isRemote() -> bool

Supplemental documentation: Qt 5 reference:

bool QPrinterInfo::isRemote() const

Returns whether this printer is a remote network printer.

This function was introduced in Qt 5.3.

Upstream PySide2 reference signatures (binding differences may apply):

isRemote(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#isRemote

location

location() -> str

X.location() -> str

Supplemental documentation: Qt 5 reference:

QString QPrinterInfo::location() const

Returns the human-readable location of the printer.

This function was introduced in Qt 5.0.

Upstream PySide2 reference signatures (binding differences may apply):

location(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#location

makeAndModel

makeAndModel() -> str

X.makeAndModel() -> str

Supplemental documentation: Qt 5 reference:

QString QPrinterInfo::makeAndModel() const

Returns the human-readable make and model of the printer.

This function was introduced in Qt 5.0.

Upstream PySide2 reference signatures (binding differences may apply):

makeAndModel(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#makeAndModel

maximumPhysicalPageSize

maximumPhysicalPageSize() -> Any

X.maximumPhysicalPageSize() -> PythonQt.QtGui.QPageSize

Supplemental documentation: Qt 5 reference:

QPageSize QPrinterInfo::maximumPhysicalPageSize() const

Returns the maximum physical page size supported by this printer.

This function was introduced in Qt 5.3.

See also minimumPhysicalPageSize().

Upstream PySide2 reference signatures (binding differences may apply):

maximumPhysicalPageSize(self) -> PySide2.QtGui.QPageSize

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#maximumPhysicalPageSize

minimumPhysicalPageSize

minimumPhysicalPageSize() -> Any

X.minimumPhysicalPageSize() -> PythonQt.QtGui.QPageSize

Supplemental documentation: Qt 5 reference:

QPageSize QPrinterInfo::minimumPhysicalPageSize() const

Returns the minimum physical page size supported by this printer.

This function was introduced in Qt 5.3.

See also maximumPhysicalPageSize().

Upstream PySide2 reference signatures (binding differences may apply):

minimumPhysicalPageSize(self) -> PySide2.QtGui.QPageSize

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#minimumPhysicalPageSize

printerInfo

printerInfo(printerName: str) -> Any

X.printerInfo(printerName) -> PythonQt.QtGui.QPrinterInfo

Supplemental documentation: Qt 5 reference:

[static] QPrinterInfo QPrinterInfo::printerInfo(const QString \&printerName)

Returns the printer printerName.

The return value should be checked using isNull() before being used, in case the named printer does not exist.

This function was introduced in Qt 5.0.

See also isNull().

Upstream PySide2 reference signatures (binding differences may apply):

printerInfo(printerName: str) -> PySide2.QtPrintSupport.QPrinterInfo

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#printerInfo

printerName

printerName() -> str

X.printerName() -> str

Supplemental documentation: Qt 5 reference:

QString QPrinterInfo::printerName() const

Returns the name of the printer.

This is a unique id to identify the printer and may not be human-readable.

See also QPrinterInfo::description() and QPrinter::setPrinterName().

Upstream PySide2 reference signatures (binding differences may apply):

printerName(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#printerName

state

state() -> Any

X.state()

Supplemental documentation: Qt 5 reference:

QPrinter::PrinterState QPrinterInfo::state() const

Returns the current state of this printer.

This state may not always be accurate, depending on the platform, printer driver, or printer itself.

This function was introduced in Qt 5.3.

Upstream PySide2 reference signatures (binding differences may apply):

state(self) -> PySide2.QtPrintSupport.QPrinter.PrinterState

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#state

supportedDuplexModes

supportedDuplexModes() -> tuple

X.supportedDuplexModes() -> tuple

Supplemental documentation: Qt 5 reference:

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

Returns a list of duplex modes supported by this printer.

This function was introduced in Qt 5.4.

Upstream PySide2 reference signatures (binding differences may apply):

supportedDuplexModes(self) -> typing.List[PySide2.QtPrintSupport.QPrinter.DuplexMode]

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#supportedDuplexModes

supportedPageSizes

supportedPageSizes() -> tuple

X.supportedPageSizes() -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QPageSize> QPrinterInfo::supportedPageSizes() const

Returns a list of Page Sizes supported by this printer.

This function was introduced in Qt 5.3.

Upstream PySide2 reference signatures (binding differences may apply):

supportedPageSizes(self) -> typing.List[PySide2.QtGui.QPageSize]

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#supportedPageSizes

supportedPaperSizes

supportedPaperSizes() -> tuple

X.supportedPaperSizes() -> tuple

Upstream PySide2 reference signatures (binding differences may apply):

supportedPaperSizes(self) -> typing.List[PySide2.QtGui.QPagedPaintDevice.PageSize]

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#supportedPaperSizes

supportedResolutions

supportedResolutions() -> tuple

X.supportedResolutions() -> tuple

Supplemental documentation: Qt 5 reference:

QList\<int> QPrinterInfo::supportedResolutions() const

Returns a list of resolutions supported by this printer.

This function was introduced in Qt 5.3.

Upstream PySide2 reference signatures (binding differences may apply):

supportedResolutions(self) -> typing.List[int]

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#supportedResolutions

supportedSizesWithNames

supportedSizesWithNames() -> tuple

X.supportedSizesWithNames() -> tuple

Upstream PySide2 reference signatures (binding differences may apply):

supportedSizesWithNames(self) -> typing.List[typing.Tuple[str, PySide2.QtCore.QSizeF]]

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#supportedSizesWithNames

supportsCustomPageSizes

supportsCustomPageSizes() -> bool

X.supportsCustomPageSizes() -> bool

Supplemental documentation: Qt 5 reference:

bool QPrinterInfo::supportsCustomPageSizes() const

Returns whether this printer supports custom page sizes.

This function was introduced in Qt 5.3.

Upstream PySide2 reference signatures (binding differences may apply):

supportsCustomPageSizes(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qprinterinfo.html#supportsCustomPageSizes