java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.printsupport.QPrinter
- All Implemented Interfaces:
QPagedPaintDevice
,QPaintDevice
,QtObjectInterface
Paint device that paints on a printer
Java wrapper for Qt's class QPrinter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QPrinter::ColorModestatic enum
Java wrapper for Qt enum QPrinter::DuplexModestatic enum
Java wrapper for Qt enum QPrinter::Orientationstatic enum
Java wrapper for Qt enum QPrinter::OutputFormatstatic enum
Java wrapper for Qt enum QPrinter::PageOrderstatic enum
Java wrapper for Qt enum QPrinter::PaperSourcestatic enum
Java wrapper for Qt enum QPrinter::PrinterModestatic enum
Java wrapper for Qt enum QPrinter::PrinterStatestatic enum
Java wrapper for Qt enum QPrinter::PrintRangestatic enum
Java wrapper for Qt enum QPrinter::UnitNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
Nested classes/interfaces inherited from interface io.qt.gui.QPagedPaintDevice
QPagedPaintDevice.Impl, QPagedPaintDevice.Margins, QPagedPaintDevice.MemberAccess, QPagedPaintDevice.PageSize, QPagedPaintDevice.PdfVersion
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Constructor Summary
ModifierConstructorDescriptionQPrinter()
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
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
abort()
final int
Deprecated.Use copyCount() instead.final boolean
final int
final QPrinter.ColorMode
final int
final String
creator()
final int
depth()
final double
final double
static double
final String
docName()
final boolean
Deprecated.Use duplex() instead.final QPrinter.DuplexMode
duplex()
final boolean
final int
fromPage()
final boolean
fullPage()
final QMarginsF
getPageMargins
(QPrinter.Unit unit) Deprecated.Use pageLayout().margins() instead.final int
height()
final int
heightMM()
protected void
initPainter
(QPainter painter) final boolean
isValid()
final int
final int
margins()
Deprecated.Use pageLayout().margins() instead.protected int
metric
(QPaintDevice.PaintDeviceMetric arg__1) boolean
newPage()
final int
Deprecated.Use copyCount() instead.final QPrinter.Orientation
Deprecated.Use pageLayout().orientation() instead.final String
final QPrinter.OutputFormat
final QPageLayout
final QPrinter.PageOrder
final QRect
pageRect()
Deprecated.Use pageLayout().paintRectPixels(resolution()) instead.final QRectF
pageRect
(QPrinter.Unit arg__1) pageSize()
Deprecated.Use pageLayout().pageSize().id() instead.final QSizeF
Deprecated.Use pageLayout().pageSize() instead.final boolean
final String
Deprecated.Use pageLayout().pageSize().name() instead.final QRect
Deprecated.Use pageLayout().fullRectPixels(resolution()) instead.final QRectF
paperRect
(QPrinter.Unit arg__1) Deprecated.pageLayout().pageSize().id()final QSizeF
paperSize
(QPrinter.Unit unit) Deprecated.Use pageLayout().pageSize().size() or pageLayout().fullPageSize() instead.final QPrinter.PaperSource
final int
final int
final QPrintEngine
final String
final QPrinter.PrinterState
final String
final QPrinter.PrintRange
protected QPaintDevice
redirected
(QPoint offset) final int
final void
setCollateCopies
(boolean collate) final void
setColorMode
(QPrinter.ColorMode arg__1) final void
setCopyCount
(int arg__1) final void
setCreator
(String arg__1) final void
setDocName
(String arg__1) final void
setDoubleSidedPrinting
(boolean enable) Deprecated.Use setDuplex() instead.final void
setDuplex
(QPrinter.DuplexMode duplex) protected final void
setEngines
(QPrintEngine printEngine, QPaintEngine paintEngine) final void
setFontEmbeddingEnabled
(boolean enable) final void
setFromTo
(int fromPage, int toPage) final void
setFullPage
(boolean arg__1) void
Deprecated.Use setPageMargins(QMarginsF, QPageLayout::Unit) instead.final void
setNumCopies
(int arg__1) Deprecated.Use setCopyCount() instead.final void
setOrientation
(QPrinter.Orientation arg__1) Deprecated.Use setPageOrientation() instead.final void
setOutputFileName
(String arg__1) final void
setOutputFormat
(QPrinter.OutputFormat format) final boolean
setPageLayout
(QPageLayout pageLayout) final void
setPageMargins
(double left, double top, double right, double bottom, QPrinter.Unit unit) Deprecated.Use setPageMargins(QMarginsF, QPageLayout::Unit) instead.final boolean
setPageMargins
(QMarginsF margins) final boolean
setPageMargins
(QMarginsF margins, QPageLayout.Unit units) final void
setPageOrder
(QPrinter.PageOrder arg__1) final boolean
setPageOrientation
(QPageLayout.Orientation orientation) void
Deprecated.Use setPageSize(QPageSize) instead.final boolean
setPageSize
(QPageSize pageSize) void
setPageSizeMM
(QSizeF size) Deprecated.Use setPageSize(QPageSize) instead.final void
setPaperName
(String paperName) Deprecated.Use setPageSize(QPageSize) instead.final void
setPaperSize
(QSizeF paperSize, QPrinter.Unit unit) Deprecated.Use setPageSize(QPageSize) instead.final void
Deprecated.Use setPageSize(QPageSize) instead.final void
setPaperSource
(QPrinter.PaperSource arg__1) final void
final void
setPrinterName
(String arg__1) final void
setPrintProgram
(String arg__1) final void
setPrintRange
(QPrinter.PrintRange range) final void
setResolution
(int arg__1) final void
setWinPageSize
(int winPageSize) Deprecated.Use QPageSize::id(windowsId) and setPageLayout(QPageSize) instead.protected QPainter
final boolean
final int
toPage()
final int
width()
final int
widthMM()
final int
Deprecated.Use pageLayout.pageSize().windowsId() instead.Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
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
-
actualNumCopies
Deprecated.Use copyCount() instead. -
collateCopies
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
-
colorMode
-
copyCount
-
creator
-
depth
- Specified by:
depth
in interfaceQPaintDevice
-
devicePixelRatio
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
docName
-
doubleSidedPrinting
Deprecated.Use duplex() instead. -
duplex
-
fontEmbeddingEnabled
-
fromPage
-
fullPage
-
getPageMargins
Deprecated.Use pageLayout().margins() instead. -
height
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
- Specified by:
heightMM
in interfaceQPaintDevice
-
isValid
-
logicalDpiX
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
margins
Deprecated.Use pageLayout().margins() instead.- Specified by:
margins
in interfaceQPagedPaintDevice
-
numCopies
Deprecated.Use copyCount() instead. -
orientation
Deprecated.Use pageLayout().orientation() instead. -
outputFileName
-
outputFormat
-
pageLayout
- Specified by:
pageLayout
in interfaceQPagedPaintDevice
-
pageOrder
-
pageRect
Deprecated.Use pageLayout().paintRectPixels(resolution()) instead. -
pageRect
-
pageSize
Deprecated.Use pageLayout().pageSize().id() instead.- Specified by:
pageSize
in interfaceQPagedPaintDevice
-
pageSizeMM
Deprecated.Use pageLayout().pageSize() instead.- Specified by:
pageSizeMM
in interfaceQPagedPaintDevice
-
paintingActive
- Specified by:
paintingActive
in interfaceQPaintDevice
-
paperName
Deprecated.Use pageLayout().pageSize().name() instead. -
paperRect
Deprecated.Use pageLayout().fullRectPixels(resolution()) instead. -
paperRect
-
paperSize
Deprecated.pageLayout().pageSize().id() -
paperSize
Deprecated.Use pageLayout().pageSize().size() or pageLayout().fullPageSize() instead. -
paperSource
-
pdfVersion
-
physicalDpiX
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
- Specified by:
physicalDpiY
in interfaceQPaintDevice
-
printEngine
-
printProgram
-
printRange
-
printerName
-
printerState
-
resolution
-
setCollateCopies
-
setColorMode
-
setCopyCount
-
setCreator
-
setDocName
-
setDoubleSidedPrinting
Deprecated.Use setDuplex() instead. -
setDuplex
-
setEngines
-
setFontEmbeddingEnabled
-
setFromTo
-
setFullPage
-
setNumCopies
Deprecated.Use setCopyCount() instead. -
setOrientation
Deprecated.Use setPageOrientation() instead. -
setOutputFileName
-
setOutputFormat
-
setPageLayout
- Specified by:
setPageLayout
in interfaceQPagedPaintDevice
-
setPageMargins
- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageMargins
- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageMargins
@Deprecated @QtUninvokable public final void setPageMargins(double left, double top, double right, double bottom, QPrinter.Unit unit) Deprecated.Use setPageMargins(QMarginsF, QPageLayout::Unit) instead. -
setPageOrder
-
setPageOrientation
- Specified by:
setPageOrientation
in interfaceQPagedPaintDevice
-
setPageSize
- Specified by:
setPageSize
in interfaceQPagedPaintDevice
-
setPaperName
Deprecated.Use setPageSize(QPageSize) instead. -
setPaperSize
Deprecated.Use setPageSize(QPageSize) instead. -
setPaperSize
Deprecated.Use setPageSize(QPageSize) instead. -
setPaperSource
-
setPdfVersion
-
setPrintProgram
-
setPrintRange
-
setPrinterName
-
setResolution
-
setWinPageSize
Deprecated.Use QPageSize::id(windowsId) and setPageLayout(QPageSize) instead. -
supportedResolutions
-
supportsMultipleCopies
-
toPage
-
width
- Specified by:
width
in interfaceQPaintDevice
-
widthMM
- Specified by:
widthMM
in interfaceQPaintDevice
-
winPageSize
Deprecated.Use pageLayout.pageSize().windowsId() instead. -
initPainter
-
metric
-
newPage
- Specified by:
newPage
in interfaceQPagedPaintDevice
-
paintEngine
- Specified by:
paintEngine
in interfaceQPagedPaintDevice
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
-
setMargins
Deprecated.Use setPageMargins(QMarginsF, QPageLayout::Unit) instead.- Specified by:
setMargins
in interfaceQPagedPaintDevice
-
setPageSize
Deprecated.Use setPageSize(QPageSize) instead.- Specified by:
setPageSize
in interfaceQPagedPaintDevice
-
setPageSizeMM
Deprecated.Use setPageSize(QPageSize) instead.- Specified by:
setPageSizeMM
in interfaceQPagedPaintDevice
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()
-