Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtPrintSupport »

Classe « QPrinter »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
            QPagedPaintDevice
                QPrinter

Définition

class QPrinter(QPagedPaintDevice):

Description [extrait de QPrinter.__doc__]

QPrinter(self, mode: PySide6.QtPrintSupport.QPrinter.PrinterMode = PySide6.QtPrintSupport.QPrinter.PrinterMode.ScreenResolution) -> None
QPrinter(self, printer: PySide6.QtPrintSupport.QPrinterInfo, mode: PySide6.QtPrintSupport.QPrinter.PrinterMode = PySide6.QtPrintSupport.QPrinter.PrinterMode.ScreenResolution) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AbortedPySide6.QtPrintSupport.QPrinter.PrinterState.Aborted
ActivePySide6.QtPrintSupport.QPrinter.PrinterState.Active
AllPagesPySide6.QtPrintSupport.QPrinter.PrintRange.AllPages
AutoPySide6.QtPrintSupport.QPrinter.PaperSource.Auto
CassettePySide6.QtPrintSupport.QPrinter.PaperSource.Cassette
CiceroPySide6.QtPrintSupport.QPrinter.Unit.Cicero
ColorPySide6.QtPrintSupport.QPrinter.ColorMode.Color
CurrentPagePySide6.QtPrintSupport.QPrinter.PrintRange.CurrentPage
CustomSourcePySide6.QtPrintSupport.QPrinter.PaperSource.CustomSource
DevicePixelPySide6.QtPrintSupport.QPrinter.Unit.DevicePixel
DidotPySide6.QtPrintSupport.QPrinter.Unit.Didot
DuplexAutoPySide6.QtPrintSupport.QPrinter.DuplexMode.DuplexAuto
DuplexLongSidePySide6.QtPrintSupport.QPrinter.DuplexMode.DuplexLongSide
DuplexNonePySide6.QtPrintSupport.QPrinter.DuplexMode.DuplexNone
DuplexShortSidePySide6.QtPrintSupport.QPrinter.DuplexMode.DuplexShortSide
EnvelopePySide6.QtPrintSupport.QPrinter.PaperSource.Envelope
EnvelopeManualPySide6.QtPrintSupport.QPrinter.PaperSource.EnvelopeManual
ErrorPySide6.QtPrintSupport.QPrinter.PrinterState.Error
FirstPageFirstPySide6.QtPrintSupport.QPrinter.PageOrder.FirstPageFirst
FormSourcePySide6.QtPrintSupport.QPrinter.PaperSource.FormSource
GrayScalePySide6.QtPrintSupport.QPrinter.ColorMode.GrayScale
HighResolutionPySide6.QtPrintSupport.QPrinter.PrinterMode.HighResolution
IdlePySide6.QtPrintSupport.QPrinter.PrinterState.Idle
InchPySide6.QtPrintSupport.QPrinter.Unit.Inch
LargeCapacityPySide6.QtPrintSupport.QPrinter.PaperSource.LargeCapacity
LargeFormatPySide6.QtPrintSupport.QPrinter.PaperSource.LargeFormat
LastPageFirstPySide6.QtPrintSupport.QPrinter.PageOrder.LastPageFirst
LastPaperSourcePySide6.QtPrintSupport.QPrinter.PaperSource.LastPaperSource
LowerPySide6.QtPrintSupport.QPrinter.PaperSource.Lower
ManualPySide6.QtPrintSupport.QPrinter.PaperSource.Manual
MaxPageSourcePySide6.QtPrintSupport.QPrinter.PaperSource.MaxPageSource
MiddlePySide6.QtPrintSupport.QPrinter.PaperSource.Middle
MillimeterPySide6.QtPrintSupport.QPrinter.Unit.Millimeter
NativeFormatPySide6.QtPrintSupport.QPrinter.OutputFormat.NativeFormat
OnlyOnePySide6.QtPrintSupport.QPrinter.PaperSource.OnlyOne
PageRangePySide6.QtPrintSupport.QPrinter.PrintRange.PageRange
PdfFormatPySide6.QtPrintSupport.QPrinter.OutputFormat.PdfFormat
PdfVersion_1_4PySide6.QtGui.QPagedPaintDevice.PdfVersion.PdfVersion_1_4
PdfVersion_1_6PySide6.QtGui.QPagedPaintDevice.PdfVersion.PdfVersion_1_6
PdfVersion_A1bPySide6.QtGui.QPagedPaintDevice.PdfVersion.PdfVersion_A1b
PdmDepthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide6.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM
PicaPySide6.QtPrintSupport.QPrinter.Unit.Pica
PointPySide6.QtPrintSupport.QPrinter.Unit.Point
PrinterResolutionPySide6.QtPrintSupport.QPrinter.PrinterMode.PrinterResolution
ScreenResolutionPySide6.QtPrintSupport.QPrinter.PrinterMode.ScreenResolution
SelectionPySide6.QtPrintSupport.QPrinter.PrintRange.Selection
SmallFormatPySide6.QtPrintSupport.QPrinter.PaperSource.SmallFormat
TractorPySide6.QtPrintSupport.QPrinter.PaperSource.Tractor
UpperPySide6.QtPrintSupport.QPrinter.PaperSource.Upper

Attributs statiques hérités de la classe QPaintDevice

painters

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
abort(self) -> bool abort(self) -> bool [extrait de abort.__doc__]
collateCopies(self) -> bool collateCopies(self) -> bool [extrait de collateCopies.__doc__]
ColorMode
colorMode(self) -> PySide6.QtPrintSupport.QPrinter.ColorMode colorMode(self) -> PySide6.QtPrintSupport.QPrinter.ColorMode [extrait de colorMode.__doc__]
copyCount(self) -> int copyCount(self) -> int [extrait de copyCount.__doc__]
creator(self) -> str creator(self) -> str [extrait de creator.__doc__]
devType(self) -> int devType(self) -> int [extrait de devType.__doc__]
docName(self) -> str docName(self) -> str [extrait de docName.__doc__]
duplex(self) -> PySide6.QtPrintSupport.QPrinter.DuplexMode duplex(self) -> PySide6.QtPrintSupport.QPrinter.DuplexMode [extrait de duplex.__doc__]
DuplexMode
fontEmbeddingEnabled(self) -> bool fontEmbeddingEnabled(self) -> bool [extrait de fontEmbeddingEnabled.__doc__]
fromPage(self) -> int fromPage(self) -> int [extrait de fromPage.__doc__]
fullPage(self) -> bool fullPage(self) -> bool [extrait de fullPage.__doc__]
isValid(self) -> bool isValid(self) -> bool [extrait de isValid.__doc__]
metric(self, arg__1: PySide6.QtGui.QPaintDevice.PaintDeviceMetric) -> int metric(self, arg__1: PySide6.QtGui.QPaintDevice.PaintDeviceMetric) -> int [extrait de metric.__doc__]
newPage(self) -> bool newPage(self) -> bool [extrait de newPage.__doc__]
outputFileName(self) -> str outputFileName(self) -> str [extrait de outputFileName.__doc__]
OutputFormat
outputFormat(self) -> PySide6.QtPrintSupport.QPrinter.OutputFormat outputFormat(self) -> PySide6.QtPrintSupport.QPrinter.OutputFormat [extrait de outputFormat.__doc__]
PageOrder
pageOrder(self) -> PySide6.QtPrintSupport.QPrinter.PageOrder pageOrder(self) -> PySide6.QtPrintSupport.QPrinter.PageOrder [extrait de pageOrder.__doc__]
pageRect(self, arg__1: PySide6.QtPrintSupport.QPrinter.Unit) -> PySide6.QtCore.QRectF pageRect(self, arg__1: PySide6.QtPrintSupport.QPrinter.Unit) -> PySide6.QtCore.QRectF [extrait de pageRect.__doc__]
paintEngine(self) -> PySide6.QtGui.QPaintEngine paintEngine(self) -> PySide6.QtGui.QPaintEngine [extrait de paintEngine.__doc__]
paperRect(self, arg__1: PySide6.QtPrintSupport.QPrinter.Unit) -> PySide6.QtCore.QRectF paperRect(self, arg__1: PySide6.QtPrintSupport.QPrinter.Unit) -> PySide6.QtCore.QRectF [extrait de paperRect.__doc__]
PaperSource
paperSource(self) -> PySide6.QtPrintSupport.QPrinter.PaperSource paperSource(self) -> PySide6.QtPrintSupport.QPrinter.PaperSource [extrait de paperSource.__doc__]
pdfVersion(self) -> PySide6.QtGui.QPagedPaintDevice.PdfVersion pdfVersion(self) -> PySide6.QtGui.QPagedPaintDevice.PdfVersion [extrait de pdfVersion.__doc__]
printEngine(self) -> PySide6.QtPrintSupport.QPrintEngine printEngine(self) -> PySide6.QtPrintSupport.QPrintEngine [extrait de printEngine.__doc__]
PrinterMode
printerName(self) -> str printerName(self) -> str [extrait de printerName.__doc__]
PrinterState
printerState(self) -> PySide6.QtPrintSupport.QPrinter.PrinterState printerState(self) -> PySide6.QtPrintSupport.QPrinter.PrinterState [extrait de printerState.__doc__]
printProgram(self) -> str printProgram(self) -> str [extrait de printProgram.__doc__]
PrintRange
printRange(self) -> PySide6.QtPrintSupport.QPrinter.PrintRange printRange(self) -> PySide6.QtPrintSupport.QPrinter.PrintRange [extrait de printRange.__doc__]
resolution(self) -> int resolution(self) -> int [extrait de resolution.__doc__]
setCollateCopies(self, collate: bool) -> None setCollateCopies(self, collate: bool) -> None [extrait de setCollateCopies.__doc__]
setColorMode(self, arg__1: PySide6.QtPrintSupport.QPrinter.ColorMode) -> None setColorMode(self, arg__1: PySide6.QtPrintSupport.QPrinter.ColorMode) -> None [extrait de setColorMode.__doc__]
setCopyCount(self, arg__1: int) -> None setCopyCount(self, arg__1: int) -> None [extrait de setCopyCount.__doc__]
setCreator(self, arg__1: str) -> None setCreator(self, arg__1: str) -> None [extrait de setCreator.__doc__]
setDocName(self, arg__1: str) -> None setDocName(self, arg__1: str) -> None [extrait de setDocName.__doc__]
setDuplex(self, duplex: PySide6.QtPrintSupport.QPrinter.DuplexMode) -> None setDuplex(self, duplex: PySide6.QtPrintSupport.QPrinter.DuplexMode) -> None [extrait de setDuplex.__doc__]
setEngines(self, printEngine: PySide6.QtPrintSupport.QPrintEngine, paintEngine: PySide6.QtGui.QPaintEngine) -> None setEngines(self, printEngine: PySide6.QtPrintSupport.QPrintEngine, paintEngine: PySide6.QtGui.QPaintEngine) -> None [extrait de setEngines.__doc__]
setFontEmbeddingEnabled(self, enable: bool) -> None setFontEmbeddingEnabled(self, enable: bool) -> None [extrait de setFontEmbeddingEnabled.__doc__]
setFromTo(self, fromPage: int, toPage: int) -> None setFromTo(self, fromPage: int, toPage: int) -> None [extrait de setFromTo.__doc__]
setFullPage(self, arg__1: bool) -> None setFullPage(self, arg__1: bool) -> None [extrait de setFullPage.__doc__]
setOutputFileName(self, arg__1: str) -> None setOutputFileName(self, arg__1: str) -> None [extrait de setOutputFileName.__doc__]
setOutputFormat(self, format: PySide6.QtPrintSupport.QPrinter.OutputFormat) -> None setOutputFormat(self, format: PySide6.QtPrintSupport.QPrinter.OutputFormat) -> None [extrait de setOutputFormat.__doc__]
setPageOrder(self, arg__1: PySide6.QtPrintSupport.QPrinter.PageOrder) -> None setPageOrder(self, arg__1: PySide6.QtPrintSupport.QPrinter.PageOrder) -> None [extrait de setPageOrder.__doc__]
setPageSize(self, arg__1: Union[PySide6.QtGui.QPageSize, PySide6.QtGui.QPageSize.PageSizeId, PySide6.QtCore.QSize]) -> bool setPageSize(self, arg__1: Union[PySide6.QtGui.QPageSize, PySide6.QtGui.QPageSize.PageSizeId, PySide6.QtCore.QSize]) -> bool [extrait de setPageSize.__doc__]
setPaperSource(self, arg__1: PySide6.QtPrintSupport.QPrinter.PaperSource) -> None setPaperSource(self, arg__1: PySide6.QtPrintSupport.QPrinter.PaperSource) -> None [extrait de setPaperSource.__doc__]
setPdfVersion(self, version: PySide6.QtGui.QPagedPaintDevice.PdfVersion) -> None setPdfVersion(self, version: PySide6.QtGui.QPagedPaintDevice.PdfVersion) -> None [extrait de setPdfVersion.__doc__]
setPrinterName(self, arg__1: str) -> None setPrinterName(self, arg__1: str) -> None [extrait de setPrinterName.__doc__]
setPrintProgram(self, arg__1: str) -> None setPrintProgram(self, arg__1: str) -> None [extrait de setPrintProgram.__doc__]
setPrintRange(self, range: PySide6.QtPrintSupport.QPrinter.PrintRange) -> None setPrintRange(self, range: PySide6.QtPrintSupport.QPrinter.PrintRange) -> None [extrait de setPrintRange.__doc__]
setResolution(self, arg__1: int) -> None setResolution(self, arg__1: int) -> None [extrait de setResolution.__doc__]
supportedResolutions(self) -> List[int] supportedResolutions(self) -> List[int] [extrait de supportedResolutions.__doc__]
supportsMultipleCopies(self) -> bool supportsMultipleCopies(self) -> bool [extrait de supportsMultipleCopies.__doc__]
toPage(self) -> int toPage(self) -> int [extrait de toPage.__doc__]
Unit

Méthodes héritées de la classe QPagedPaintDevice

__init_subclass__, __subclasshook__, pageLayout, pageRanges, PdfVersion, setPageLayout, setPageMargins, setPageOrientation, setPageRanges

Méthodes héritées de la classe QPaintDevice

__init_subclass__, __subclasshook__, colorCount, depth, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, height, heightMM, initPainter, logicalDpiX, logicalDpiY, PaintDeviceMetric, paintingActive, physicalDpiX, physicalDpiY, redirected, sharedPainter, width, widthMM

Méthodes héritées de la classe Object

__getattribute__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__