Skip to content

PrintEngine

Qt Base Class: QPrintEngine

Signature: QPrintEngine(self) -> None

Base classes

Name Children Inherits
QPrintEngine
PySide6.QtPrintSupport
QPrintEngine(self) -> None

⋔ Inheritance diagram

graph TD
  1473572229104["printsupport.PrintEngine"]
  1473572066352["QtPrintSupport.QPrintEngine"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473572066352 --> 1473572229104
  1473291690208 --> 1473572066352
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QPrintEngine

Defines an interface for how QPrinter interacts with a given printing subsystem.

Source code in prettyqt\printsupport\printengine.py
class PrintEngine(printsupport.QPrintEngine):
    """Defines an interface for how QPrinter interacts with a given printing subsystem."""

    def get_printer_state(self) -> PrintEnginePropertyKeyStr:
        return printsupport.printer.PRINTER_STATE.inverse[self.printerState()]