Home
·
All Classes
·
Modules
QPrinter Class Reference
[
QtGui
module]
Inherits
QPaintDevice
.
Types
enum
ColorMode
{ GrayScale, Color }
enum
DuplexMode
{ DuplexNone, DuplexAuto, DuplexLongSide, DuplexShortSide }
enum
Orientation
{ Portrait, Landscape }
enum
OutputFormat
{ NativeFormat, PdfFormat, PostScriptFormat }
enum
PageOrder
{ FirstPageFirst, LastPageFirst }
enum
PageSize
{ A4, B5, Letter, Legal, ..., Custom }
enum
PaperSource
{ OnlyOne, Lower, Middle, Manual, ..., MaxPageSource }
enum
PrinterMode
{ ScreenResolution, PrinterResolution, HighResolution }
enum
PrinterState
{ Idle, Active, Aborted, Error }
enum
PrintRange
{ AllPages, Selection, PageRange, CurrentPage }
enum
Unit
{ Millimeter, Point, Inch, Pica, ..., DevicePixel }
Methods
__init__
(
self
, PrinterMode
mode
= QPrinter.ScreenResolution)
__init__
(
self
, QPrinterInfo, PrinterMode
mode
= QPrinter.ScreenResolution)
bool
abort
(
self
)
int
actualNumCopies
(
self
)
bool
collateCopies
(
self
)
ColorMode
colorMode
(
self
)
int
copyCount
(
self
)
QString
creator
(
self
)
int
devType
(
self
)
QString
docName
(
self
)
bool
doubleSidedPrinting
(
self
)
DuplexMode
duplex
(
self
)
bool
fontEmbeddingEnabled
(
self
)
int
fromPage
(
self
)
bool
fullPage
(
self
)
(float, float, float, float)
getPageMargins
(
self
, Unit)
bool
isValid
(
self
)
int
metric
(
self
, QPaintDevice.PaintDeviceMetric)
bool
newPage
(
self
)
int
numCopies
(
self
)
Orientation
orientation
(
self
)
QString
outputFileName
(
self
)
OutputFormat
outputFormat
(
self
)
PageOrder
pageOrder
(
self
)
QRect
pageRect
(
self
)
QRectF
pageRect
(
self
, Unit)
PageSize
pageSize
(
self
)
QPaintEngine
paintEngine
(
self
)
QRect
paperRect
(
self
)
QRectF
paperRect
(
self
, Unit)
PageSize
paperSize
(
self
)
QSizeF
paperSize
(
self
, Unit)
PaperSource
paperSource
(
self
)
QPrintEngine
printEngine
(
self
)
QString
printerName
(
self
)
QString
printerSelectionOption
(
self
)
PrinterState
printerState
(
self
)
QString
printProgram
(
self
)
PrintRange
printRange
(
self
)
int
resolution
(
self
)
setCollateCopies
(
self
, bool)
setColorMode
(
self
, ColorMode)
setCopyCount
(
self
, int)
setCreator
(
self
, QString)
setDocName
(
self
, QString)
setDoubleSidedPrinting
(
self
, bool)
setDuplex
(
self
, DuplexMode)
setEngines
(
self
, QPrintEngine, QPaintEngine)
setFontEmbeddingEnabled
(
self
, bool)
setFromTo
(
self
, int, int)
setFullPage
(
self
, bool)
setNumCopies
(
self
, int)
setOrientation
(
self
, Orientation)
setOutputFileName
(
self
, QString)
setOutputFormat
(
self
, OutputFormat)
setPageMargins
(
self
, float, float, float, float, Unit)
setPageOrder
(
self
, PageOrder)
setPageSize
(
self
, PageSize)
setPaperSize
(
self
, PageSize)
setPaperSize
(
self
, QSizeF, Unit)
setPaperSource
(
self
, PaperSource)
setPrinterName
(
self
, QString)
setPrinterSelectionOption
(
self
, QString)
setPrintProgram
(
self
, QString)
setPrintRange
(
self
, PrintRange)
setResolution
(
self
, int)
list-of-int
supportedResolutions
(
self
)
bool
supportsMultipleCopies
(
self
)
int
toPage
(
self
)
Detailed Description
Type Documentation
QPrinter.ColorMode
QPrinter.DuplexMode
QPrinter.Orientation
QPrinter.OutputFormat
QPrinter.PageOrder
QPrinter.PageSize
QPrinter.PaperSource
QPrinter.PrinterMode
QPrinter.PrinterState
QPrinter.PrintRange
QPrinter.Unit
Method Documentation
QPrinter.__init__ (
self
,
PrinterMode
mode
= QPrinter.ScreenResolution)
QPrinter.__init__ (
self
,
QPrinterInfo
,
PrinterMode
mode
= QPrinter.ScreenResolution)
bool QPrinter.abort (
self
)
int QPrinter.actualNumCopies (
self
)
bool QPrinter.collateCopies (
self
)
ColorMode
QPrinter.colorMode (
self
)
int QPrinter.copyCount (
self
)
QString QPrinter.creator (
self
)
int QPrinter.devType (
self
)
QString QPrinter.docName (
self
)
bool QPrinter.doubleSidedPrinting (
self
)
DuplexMode
QPrinter.duplex (
self
)
bool QPrinter.fontEmbeddingEnabled (
self
)
int QPrinter.fromPage (
self
)
bool QPrinter.fullPage (
self
)
(float, float, float, float) QPrinter.getPageMargins (
self
,
Unit
)
bool QPrinter.isValid (
self
)
int QPrinter.metric (
self
,
QPaintDevice.PaintDeviceMetric
)
bool QPrinter.newPage (
self
)
int QPrinter.numCopies (
self
)
Orientation
QPrinter.orientation (
self
)
QString QPrinter.outputFileName (
self
)
OutputFormat
QPrinter.outputFormat (
self
)
PageOrder
QPrinter.pageOrder (
self
)
QRect
QPrinter.pageRect (
self
)
QRectF
QPrinter.pageRect (
self
,
Unit
)
PageSize
QPrinter.pageSize (
self
)
QPaintEngine
QPrinter.paintEngine (
self
)
QRect
QPrinter.paperRect (
self
)
QRectF
QPrinter.paperRect (
self
,
Unit
)
PageSize
QPrinter.paperSize (
self
)
QSizeF
QPrinter.paperSize (
self
,
Unit
)
PaperSource
QPrinter.paperSource (
self
)
QPrintEngine
QPrinter.printEngine (
self
)
QString QPrinter.printerName (
self
)
QString QPrinter.printerSelectionOption (
self
)
PrinterState
QPrinter.printerState (
self
)
QString QPrinter.printProgram (
self
)
PrintRange
QPrinter.printRange (
self
)
int QPrinter.resolution (
self
)
QPrinter.setCollateCopies (
self
, bool)
QPrinter.setColorMode (
self
,
ColorMode
)
QPrinter.setCopyCount (
self
, int)
QPrinter.setCreator (
self
, QString)
QPrinter.setDocName (
self
, QString)
QPrinter.setDoubleSidedPrinting (
self
, bool)
QPrinter.setDuplex (
self
,
DuplexMode
)
QPrinter.setEngines (
self
,
QPrintEngine
,
QPaintEngine
)
QPrinter.setFontEmbeddingEnabled (
self
, bool)
QPrinter.setFromTo (
self
, int, int)
QPrinter.setFullPage (
self
, bool)
QPrinter.setNumCopies (
self
, int)
QPrinter.setOrientation (
self
,
Orientation
)
QPrinter.setOutputFileName (
self
, QString)
QPrinter.setOutputFormat (
self
,
OutputFormat
)
QPrinter.setPageMargins (
self
, float, float, float, float,
Unit
)
QPrinter.setPageOrder (
self
,
PageOrder
)
QPrinter.setPageSize (
self
,
PageSize
)
QPrinter.setPaperSize (
self
,
PageSize
)
QPrinter.setPaperSize (
self
,
QSizeF
,
Unit
)
QPrinter.setPaperSource (
self
,
PaperSource
)
QPrinter.setPrinterName (
self
, QString)
QPrinter.setPrinterSelectionOption (
self
, QString)
QPrinter.setPrintProgram (
self
, QString)
QPrinter.setPrintRange (
self
,
PrintRange
)
QPrinter.setResolution (
self
, int)
list-of-int QPrinter.supportedResolutions (
self
)
bool QPrinter.supportsMultipleCopies (
self
)
int QPrinter.toPage (
self
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0