- All Implemented Interfaces:
QPagedPaintDevice
,QPaintDevice
,QtObjectInterface
Paint device that paints on a printer
Java wrapper for Qt class QPrinter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQPrinter::ColorMode
static enum
Java wrapper for Qt enumQPrinter::DuplexMode
static enum
Java wrapper for Qt enumQPrinter::Orientation
static enum
Java wrapper for Qt enumQPrinter::OutputFormat
static enum
Java wrapper for Qt enumQPrinter::PageOrder
static enum
Java wrapper for Qt enumQPrinter::PaperSource
static enum
Java wrapper for Qt enumQPrinter::PrinterMode
static enum
Java wrapper for Qt enumQPrinter::PrinterState
static enum
Java wrapper for Qt enumQPrinter::PrintRange
static enum
Java wrapper for Qt enumQPrinter::Unit
Nested classes/interfaces inherited from interface io.qt.gui.QPagedPaintDevice
QPagedPaintDevice.Margins, QPagedPaintDevice.PageSize, QPagedPaintDevice.PdfVersion
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.PaintDeviceMetric
-
Constructor Summary
ConstructorDescriptionQPrinter()
Overloaded constructor forQPrinter(io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
.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) QPrinter
(QPrinter.PrinterMode mode) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
abort()
final int
final boolean
final int
final QPrinter.ColorMode
final int
final String
creator()
final int
depth()
protected final QPageLayout
SeeQPagedPaintDevice::
devicePageLayout()const final double
final double
static double
SeeQPaintDevice::
devicePixelRatioFScale() final String
docName()
final boolean
final QPrinter.DuplexMode
duplex()
final boolean
final int
fromPage()
final boolean
fullPage()
final QMarginsF
getPageMargins
(QPrinter.Unit unit) final int
height()
final int
heightMM()
protected void
initPainter
(QPainter painter) SeeQPaintDevice::
initPainter(QPainter*)const final boolean
isValid()
final int
final int
margins()
protected int
metric
(QPaintDevice.PaintDeviceMetric arg__1) boolean
newPage()
final int
final QPrinter.Orientation
final String
final QPrinter.OutputFormat
final QPageLayout
final QPrinter.PageOrder
final QRect
pageRect()
final QRectF
pageRect
(QPrinter.Unit arg__1) pageSize()
final QSizeF
final boolean
final String
final QRect
final QRectF
paperRect
(QPrinter.Unit arg__1) final QSizeF
paperSize
(QPrinter.Unit unit) final QPrinter.PaperSource
final int
final int
final QPrintEngine
final String
final String
final QPrinter.PrinterState
final String
final QPrinter.PrintRange
protected QPaintDevice
redirected
(QPoint offset) SeeQPaintDevice::
redirected(QPoint*)const 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) 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
final void
setNumCopies
(int arg__1) final void
setOrientation
(QPrinter.Orientation arg__1) 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) final boolean
setPageMargins
(QMargins margins) Overloaded function forsetPageMargins(io.qt.core.QMarginsF)
.final boolean
setPageMargins
(QMarginsF margins) final boolean
setPageMargins
(QMarginsF margins, QPageLayout.Unit units) final boolean
setPageMargins
(QMargins margins, QPageLayout.Unit units) Overloaded function forsetPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)
.final void
setPageOrder
(QPrinter.PageOrder arg__1) final boolean
setPageOrientation
(QPageLayout.Orientation orientation) final boolean
setPageSize
(QPageSize pageSize) void
final void
setPageSizeMM
(QSize size) Overloaded function forsetPageSizeMM(io.qt.core.QSizeF)
.void
setPageSizeMM
(QSizeF size) final void
setPaperName
(String paperName) final void
setPaperSize
(QSizeF paperSize, QPrinter.Unit unit) final void
setPaperSize
(QSize paperSize, QPrinter.Unit unit) Overloaded function forsetPaperSize(io.qt.core.QSizeF, io.qt.printsupport.QPrinter.Unit)
.final void
final void
setPaperSource
(QPrinter.PaperSource arg__1) final void
final void
setPrinterName
(String arg__1) final void
setPrinterSelectionOption
(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) protected QPainter
SeeQPaintDevice::
sharedPainter()const final QList<@QtPrimitiveType Integer>
final boolean
final int
toPage()
final int
width()
final int
widthMM()
final int
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
- Parameters:
mode
-
-
QPrinter
- Parameters:
printer
-mode
-- Since:
- This function was introduced in Qt 4.4.
-
QPrinter
public QPrinter()Overloaded constructor for
QPrinter(io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
. -
QPrinter
Overloaded constructor for
QPrinter(io.qt.printsupport.QPrinterInfo, io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
.
-
-
Method Details
-
abort
- Returns:
-
actualNumCopies
- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
collateCopies
- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
- Returns:
-
colorMode
- Returns:
-
copyCount
- Returns:
- Since:
- This function was introduced in Qt 4.7.
-
creator
- Returns:
-
depth
- Specified by:
depth
in interfaceQPaintDevice
- Returns:
-
devicePageLayout
See
QPagedPaintDevice::
devicePageLayout()const - Returns:
-
devicePixelRatio
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
- Returns:
-
devicePixelRatioF
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
- Returns:
- Since:
- This function was introduced in Qt 5.6.
-
docName
- Returns:
-
doubleSidedPrinting
- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
duplex
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
fontEmbeddingEnabled
- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
fromPage
- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
fullPage
- Returns:
-
getPageMargins
- Parameters:
unit
-- Since:
- This function was introduced in Qt 4.4.
-
height
- Specified by:
height
in interfaceQPaintDevice
- Returns:
-
heightMM
- Specified by:
heightMM
in interfaceQPaintDevice
- Returns:
-
isValid
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
logicalDpiX
- Specified by:
logicalDpiX
in interfaceQPaintDevice
- Returns:
-
logicalDpiY
- Specified by:
logicalDpiY
in interfaceQPaintDevice
- Returns:
-
margins
- Specified by:
margins
in interfaceQPagedPaintDevice
- Returns:
-
numCopies
- Returns:
-
orientation
- Returns:
-
outputFileName
- Returns:
-
outputFormat
- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
pageLayout
- Specified by:
pageLayout
in interfaceQPagedPaintDevice
- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
pageOrder
- Returns:
-
pageRect
- Returns:
-
pageRect
- Parameters:
arg__1
-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
pageSize
- Specified by:
pageSize
in interfaceQPagedPaintDevice
- Returns:
-
pageSizeMM
- Specified by:
pageSizeMM
in interfaceQPagedPaintDevice
- Returns:
-
paintingActive
- Specified by:
paintingActive
in interfaceQPaintDevice
- Returns:
-
paperName
- Returns:
- Since:
- This function was introduced in Qt 5.1.
-
paperRect
- Returns:
-
paperRect
- Parameters:
arg__1
-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
paperSize
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
paperSize
- Parameters:
unit
-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
paperSource
- Returns:
-
pdfVersion
- Returns:
- Since:
- This function was introduced in Qt 5.10.
-
physicalDpiX
- Specified by:
physicalDpiX
in interfaceQPaintDevice
- Returns:
-
physicalDpiY
- Specified by:
physicalDpiY
in interfaceQPaintDevice
- Returns:
-
printEngine
- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
printProgram
- Returns:
-
printRange
- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
printerName
- Returns:
-
printerSelectionOption
- Returns:
-
printerState
- Returns:
-
resolution
- Returns:
-
setCollateCopies
- Parameters:
collate
-- Since:
- This function was introduced in Qt 4.1.
-
setColorMode
- Parameters:
arg__1
-
-
setCopyCount
- Parameters:
arg__1
-- Since:
- This function was introduced in Qt 4.7.
-
setCreator
- Parameters:
arg__1
-
-
setDocName
- Parameters:
arg__1
-
-
setDoubleSidedPrinting
- Parameters:
enable
-- Since:
- This function was introduced in Qt 4.2.
-
setDuplex
- Parameters:
duplex
-- Since:
- This function was introduced in Qt 4.4.
-
setEngines
- Parameters:
printEngine
-paintEngine
-- Since:
- This function was introduced in Qt 4.1.
-
setFontEmbeddingEnabled
- Parameters:
enable
-- Since:
- This function was introduced in Qt 4.1.
-
setFromTo
- Parameters:
fromPage
-toPage
-- Since:
- This function was introduced in Qt 4.1.
-
setFullPage
- Parameters:
arg__1
-
-
setNumCopies
- Parameters:
arg__1
-
-
setOrientation
- Parameters:
arg__1
-
-
setOutputFileName
- Parameters:
arg__1
-
-
setOutputFormat
- Parameters:
format
-- Since:
- This function was introduced in Qt 4.1.
-
setPageLayout
- Specified by:
setPageLayout
in interfaceQPagedPaintDevice
- Parameters:
pageLayout
-- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
setPageMargins
- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
- Parameters:
margins
-- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
setPageMargins
- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
- Parameters:
margins
-units
-- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
setPageMargins
@QtUninvokable public final void setPageMargins(double left, double top, double right, double bottom, QPrinter.Unit unit) - Parameters:
left
-top
-right
-bottom
-unit
-- Since:
- This function was introduced in Qt 4.4.
-
setPageOrder
- Parameters:
arg__1
-
-
setPageOrientation
- Specified by:
setPageOrientation
in interfaceQPagedPaintDevice
- Parameters:
orientation
-- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
setPageSize
- Specified by:
setPageSize
in interfaceQPagedPaintDevice
- Parameters:
pageSize
-- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
setPaperName
- Parameters:
paperName
-- Since:
- This function was introduced in Qt 5.1.
-
setPaperSize
- Parameters:
arg__1
-- Since:
- This function was introduced in Qt 4.4.
-
setPaperSize
- Parameters:
paperSize
-unit
-- Since:
- This function was introduced in Qt 4.4.
-
setPaperSource
- Parameters:
arg__1
-
-
setPdfVersion
- Parameters:
version
-- Since:
- This function was introduced in Qt 5.10.
-
setPrintProgram
- Parameters:
arg__1
-
-
setPrintRange
- Parameters:
range
-- Since:
- This function was introduced in Qt 4.1.
-
setPrinterName
- Parameters:
arg__1
-
-
setPrinterSelectionOption
- Parameters:
arg__1
-
-
setResolution
- Parameters:
arg__1
-
-
setWinPageSize
- Parameters:
winPageSize
-
-
supportedResolutions
- Returns:
-
supportsMultipleCopies
- Returns:
- Since:
- This function was introduced in Qt 4.7.
-
toPage
- Returns:
- Since:
- This function was introduced in Qt 4.1.
-
width
- Specified by:
width
in interfaceQPaintDevice
- Returns:
-
widthMM
- Specified by:
widthMM
in interfaceQPaintDevice
- Returns:
-
winPageSize
- Returns:
-
initPainter
See
QPaintDevice::
initPainter(QPainter*)const - Parameters:
painter
-
-
metric
- Parameters:
arg__1
-- Returns:
-
newPage
- Specified by:
newPage
in interfaceQPagedPaintDevice
- Returns:
-
paintEngine
- Specified by:
paintEngine
in interfaceQPagedPaintDevice
- Specified by:
paintEngine
in interfaceQPaintDevice
- Returns:
-
redirected
See
QPaintDevice::
redirected(QPoint*)const - Parameters:
offset
-- Returns:
-
setMargins
- Specified by:
setMargins
in interfaceQPagedPaintDevice
- Parameters:
m
-
-
setPageSize
- Specified by:
setPageSize
in interfaceQPagedPaintDevice
- Parameters:
arg__1
-
-
setPageSizeMM
- Specified by:
setPageSizeMM
in interfaceQPagedPaintDevice
- Parameters:
size
-
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()See
QPaintDevice::
devicePixelRatioFScale() - Returns:
-
setPageMargins
Overloaded function for
setPageMargins(io.qt.core.QMarginsF)
.- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageMargins
Overloaded function for
setPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)
.- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPaperSize
Overloaded function for
setPaperSize(io.qt.core.QSizeF, io.qt.printsupport.QPrinter.Unit)
. -
setPageSizeMM
Overloaded function for
setPageSizeMM(io.qt.core.QSizeF)
.- Specified by:
setPageSizeMM
in interfaceQPagedPaintDevice
-