- All Implemented Interfaces:
QPagedPaintDevice
,QPaintDevice
,QtObjectInterface
public class QPrinter extends QtObject implements QPagedPaintDevice, QPaintDevice
Paint device that paints on a printer
Java wrapper for Qt class QPrinter
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QPrinter.ColorMode
Java wrapper for Qt enum QPrinter::ColorModestatic class
QPrinter.DuplexMode
Java wrapper for Qt enum QPrinter::DuplexModestatic class
QPrinter.OutputFormat
Java wrapper for Qt enum QPrinter::OutputFormatstatic class
QPrinter.PageOrder
Java wrapper for Qt enum QPrinter::PageOrderstatic class
QPrinter.PaperSource
Java wrapper for Qt enum QPrinter::PaperSourcestatic class
QPrinter.PrinterMode
Java wrapper for Qt enum QPrinter::PrinterModestatic class
QPrinter.PrinterState
Java wrapper for Qt enum QPrinter::PrinterStatestatic class
QPrinter.PrintRange
Java wrapper for Qt enum QPrinter::PrintRangestatic class
QPrinter.Unit
Java wrapper for Qt enum QPrinter::UnitNested classes/interfaces inherited from interface io.qt.gui.QPagedPaintDevice
QPagedPaintDevice.Impl, QPagedPaintDevice.MemberAccess, QPagedPaintDevice.PdfVersion
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Constructor Summary
Constructors Modifier Constructor Description QPrinter()
Overloaded constructor forQPrinter(io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
.QPrinter(QPrinter.PrinterMode mode)
QPrinter(QPrinterInfo printer)
Overloaded constructor forQPrinter(io.qt.printsupport.QPrinterInfo, io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
.QPrinter(QPrinterInfo printer, QPrinter.PrinterMode mode)
protected
QPrinter(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
-
Constructor Details
-
QPrinter
public QPrinter()Overloaded constructor for
QPrinter(io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
. -
QPrinter
-
QPrinter
Overloaded constructor for
QPrinter(io.qt.printsupport.QPrinterInfo, io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
. -
QPrinter
-
QPrinter
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
abort
-
collateCopies
-
colorCount
See QPaintDevice::
- Specified by:
colorCount
in interfaceQPaintDevice
-
colorMode
-
copyCount
-
creator
-
depth
See QPaintDevice::
- Specified by:
depth
in interfaceQPaintDevice
-
devicePixelRatio
See QPaintDevice::
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
See QPaintDevice::
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
docName
-
duplex
-
fontEmbeddingEnabled
-
fromPage
-
fullPage
-
height
See QPaintDevice::
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
See QPaintDevice::
- Specified by:
heightMM
in interfaceQPaintDevice
-
isValid
-
logicalDpiX
See QPaintDevice::
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
See QPaintDevice::
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
outputFileName
-
outputFormat
-
pageLayout
-
pageOrder
-
pageRanges
-
pageRect
-
paintingActive
See QPaintDevice::
- Specified by:
paintingActive
in interfaceQPaintDevice
-
paperRect
-
paperSource
-
pdfVersion
-
physicalDpiX
See QPaintDevice::
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
See QPaintDevice::
- Specified by:
physicalDpiY
in interfaceQPaintDevice
-
printEngine
-
printProgram
-
printRange
-
printerName
-
printerState
-
resolution
-
setCollateCopies
-
setColorMode
-
setCopyCount
-
setCreator
-
setDocName
-
setDuplex
-
setEngines
-
setFontEmbeddingEnabled
-
setFromTo
-
setFullPage
-
setOutputFileName
-
setOutputFormat
-
setPageOrder
-
setPaperSource
-
setPdfVersion
-
setPrintProgram
-
setPrintRange
-
setPrinterName
-
setResolution
-
supportedResolutions
-
supportsMultipleCopies
-
toPage
-
width
See QPaintDevice::
- Specified by:
width
in interfaceQPaintDevice
-
widthMM
See QPaintDevice::
- Specified by:
widthMM
in interfaceQPaintDevice
-
initPainter
-
metric
-
newPage
- Specified by:
newPage
in interfaceQPagedPaintDevice
-
paintEngine
- Specified by:
paintEngine
in interfaceQPagedPaintDevice
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
-
setPageLayout
- Specified by:
setPageLayout
in interfaceQPagedPaintDevice
-
setPageMargins
Overloaded function for
setPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)
withunits = io.qt.gui.QPageLayout.Unit.Millimeter
.- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageMargins
- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageOrientation
- Specified by:
setPageOrientation
in interfaceQPagedPaintDevice
-
setPageRanges
- Specified by:
setPageRanges
in interfaceQPagedPaintDevice
-
setPageSize
- Specified by:
setPageSize
in interfaceQPagedPaintDevice
-
sharedPainter
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()
-