API reference - Class QPrinter

Notation used in Ruby API documentation

Description: Binding of QPrinter

Class hierarchy: QPrinter » QPaintDevice

Sub-classes: ColorMode, DuplexMode, Orientation, OutputFormat, PageOrder, PageSize, PaperSource, PrintRange, PrinterMode, PrinterState, Unit

Public constructors

new QPrinternew(const QPrinter_PrinterMode mode = QPrinter::ScreenResolution)Constructor QPrinter::QPrinter(QPrinter::PrinterMode mode)
new QPrinternew(const QPrinterInfo printer,
const QPrinter_PrinterMode mode = QPrinter::ScreenResolution)
Constructor QPrinter::QPrinter(const QPrinterInfo &printer, QPrinter::PrinterMode mode)

Public methods

void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
boolabortMethod bool QPrinter::abort()
[const]intactualNumCopiesMethod int QPrinter::actualNumCopies()
[const]boolcollateCopiesMethod bool QPrinter::collateCopies()
voidcollateCopies=(bool collate)Method void QPrinter::setCollateCopies(bool collate)
[const]QPrinter_ColorModecolorModeMethod QPrinter::ColorMode QPrinter::colorMode()
voidcolorMode=(const QPrinter_ColorMode arg1)Method void QPrinter::setColorMode(QPrinter::ColorMode)
[const]stringcreatorMethod QString QPrinter::creator()
voidcreator=(string arg1)Method void QPrinter::setCreator(const QString &)
[const]stringdocNameMethod QString QPrinter::docName()
voiddocName=(string arg1)Method void QPrinter::setDocName(const QString &)
[const]booldoubleSidedPrintingMethod bool QPrinter::doubleSidedPrinting()
voiddoubleSidedPrinting=(bool enable)Method void QPrinter::setDoubleSidedPrinting(bool enable)
[const]QPrinter_DuplexModeduplexMethod QPrinter::DuplexMode QPrinter::duplex()
voidduplex=(const QPrinter_DuplexMode duplex)Method void QPrinter::setDuplex(QPrinter::DuplexMode duplex)
[const]boolfontEmbeddingEnabledMethod bool QPrinter::fontEmbeddingEnabled()
voidfontEmbeddingEnabled=(bool enable)Method void QPrinter::setFontEmbeddingEnabled(bool enable)
[const]intfromPageMethod int QPrinter::fromPage()
[const]boolfullPageMethod bool QPrinter::fullPage()
voidfullPage=(bool arg1)Method void QPrinter::setFullPage(bool)
[const]voidgetPageMargins(double ptr left,
double ptr top,
double ptr right,
double ptr bottom,
const QPrinter_Unit unit)
Method void QPrinter::getPageMargins(double *left, double *top, double *right, double *bottom, QPrinter::Unit unit)
[const]boolisValid?Method bool QPrinter::isValid()
boolnewPageMethod bool QPrinter::newPage()
[const]intnumCopiesMethod int QPrinter::numCopies()
voidnumCopies=(int arg1)Method void QPrinter::setNumCopies(int)
[const]QPrinter_OrientationorientationMethod QPrinter::Orientation QPrinter::orientation()
voidorientation=(const QPrinter_Orientation arg1)Method void QPrinter::setOrientation(QPrinter::Orientation)
[const]stringoutputFileNameMethod QString QPrinter::outputFileName()
voidoutputFileName=(string arg1)Method void QPrinter::setOutputFileName(const QString &)
[const]QPrinter_OutputFormatoutputFormatMethod QPrinter::OutputFormat QPrinter::outputFormat()
voidoutputFormat=(const QPrinter_OutputFormat format)Method void QPrinter::setOutputFormat(QPrinter::OutputFormat format)
[const]QPrinter_PageOrderpageOrderMethod QPrinter::PageOrder QPrinter::pageOrder()
voidpageOrder=(const QPrinter_PageOrder arg1)Method void QPrinter::setPageOrder(QPrinter::PageOrder)
[const]QRectpageRectMethod QRect QPrinter::pageRect()
[const]QRectFpageRect(const QPrinter_Unit arg1)Method QRectF QPrinter::pageRect(QPrinter::Unit)
[const]QPrinter_PageSizepageSizeMethod QPrinter::PageSize QPrinter::pageSize()
voidpageSize=(const QPrinter_PageSize arg1)Method void QPrinter::setPageSize(QPrinter::PageSize)
[virtual,const]QPaintEngine ptrpaintEngineVirtual method QPaintEngine *QPrinter::paintEngine()
[const]QRectpaperRectMethod QRect QPrinter::paperRect()
[const]QRectFpaperRect(const QPrinter_Unit arg1)Method QRectF QPrinter::paperRect(QPrinter::Unit)
[const]QPrinter_PageSizepaperSizeMethod QPrinter::PageSize QPrinter::paperSize()
[const]QSizeFpaperSize(const QPrinter_Unit unit)Method QSizeF QPrinter::paperSize(QPrinter::Unit unit)
voidpaperSize=(const QPrinter_PageSize arg1)Method void QPrinter::setPaperSize(QPrinter::PageSize)
[const]QPrinter_PaperSourcepaperSourceMethod QPrinter::PaperSource QPrinter::paperSource()
voidpaperSource=(const QPrinter_PaperSource arg1)Method void QPrinter::setPaperSource(QPrinter::PaperSource)
[const]QPrintEngine ptrprintEngineMethod QPrintEngine *QPrinter::printEngine()
[const]stringprintProgramMethod QString QPrinter::printProgram()
voidprintProgram=(string arg1)Method void QPrinter::setPrintProgram(const QString &)
[const]QPrinter_PrintRangeprintRangeMethod QPrinter::PrintRange QPrinter::printRange()
voidprintRange=(const QPrinter_PrintRange range)Method void QPrinter::setPrintRange(QPrinter::PrintRange range)
[const]stringprinterNameMethod QString QPrinter::printerName()
voidprinterName=(string arg1)Method void QPrinter::setPrinterName(const QString &)
[const]QPrinter_PrinterStateprinterStateMethod QPrinter::PrinterState QPrinter::printerState()
[const]intresolutionMethod int QPrinter::resolution()
voidresolution=(int arg1)Method void QPrinter::setResolution(int)
voidsetCollateCopies(bool collate)Method void QPrinter::setCollateCopies(bool collate)
voidsetColorMode(const QPrinter_ColorMode arg1)Method void QPrinter::setColorMode(QPrinter::ColorMode)
voidsetCreator(string arg1)Method void QPrinter::setCreator(const QString &)
voidsetDocName(string arg1)Method void QPrinter::setDocName(const QString &)
voidsetDoubleSidedPrinting(bool enable)Method void QPrinter::setDoubleSidedPrinting(bool enable)
voidsetDuplex(const QPrinter_DuplexMode duplex)Method void QPrinter::setDuplex(QPrinter::DuplexMode duplex)
voidsetFontEmbeddingEnabled(bool enable)Method void QPrinter::setFontEmbeddingEnabled(bool enable)
voidsetFromTo(int fromPage,
int toPage)
Method void QPrinter::setFromTo(int fromPage, int toPage)
voidsetFullPage(bool arg1)Method void QPrinter::setFullPage(bool)
voidsetNumCopies(int arg1)Method void QPrinter::setNumCopies(int)
voidsetOrientation(const QPrinter_Orientation arg1)Method void QPrinter::setOrientation(QPrinter::Orientation)
voidsetOutputFileName(string arg1)Method void QPrinter::setOutputFileName(const QString &)
voidsetOutputFormat(const QPrinter_OutputFormat format)Method void QPrinter::setOutputFormat(QPrinter::OutputFormat format)
voidsetPageMargins(double left,
double top,
double right,
double bottom,
const QPrinter_Unit unit)
Method void QPrinter::setPageMargins(double left, double top, double right, double bottom, QPrinter::Unit unit)
voidsetPageOrder(const QPrinter_PageOrder arg1)Method void QPrinter::setPageOrder(QPrinter::PageOrder)
voidsetPageSize(const QPrinter_PageSize arg1)Method void QPrinter::setPageSize(QPrinter::PageSize)
voidsetPaperSize(const QPrinter_PageSize arg1)Method void QPrinter::setPaperSize(QPrinter::PageSize)
voidsetPaperSize(const QSizeF paperSize,
const QPrinter_Unit unit)
Method void QPrinter::setPaperSize(const QSizeF &paperSize, QPrinter::Unit unit)
voidsetPaperSource(const QPrinter_PaperSource arg1)Method void QPrinter::setPaperSource(QPrinter::PaperSource)
voidsetPrintProgram(string arg1)Method void QPrinter::setPrintProgram(const QString &)
voidsetPrintRange(const QPrinter_PrintRange range)Method void QPrinter::setPrintRange(QPrinter::PrintRange range)
voidsetPrinterName(string arg1)Method void QPrinter::setPrinterName(const QString &)
voidsetResolution(int arg1)Method void QPrinter::setResolution(int)
[const]int[]supportedResolutionsMethod QList<int> QPrinter::supportedResolutions()
[const]inttoPageMethod int QPrinter::toPage()

Public static methods and constants

[static,const]new QPrinter_PageSize ptrA0Enum constant QPrinter::A0
[static,const]new QPrinter_PageSize ptrA1Enum constant QPrinter::A1
[static,const]new QPrinter_PageSize ptrA2Enum constant QPrinter::A2
[static,const]new QPrinter_PageSize ptrA3Enum constant QPrinter::A3
[static,const]new QPrinter_PageSize ptrA4Enum constant QPrinter::A4
[static,const]new QPrinter_PageSize ptrA5Enum constant QPrinter::A5
[static,const]new QPrinter_PageSize ptrA6Enum constant QPrinter::A6
[static,const]new QPrinter_PageSize ptrA7Enum constant QPrinter::A7
[static,const]new QPrinter_PageSize ptrA8Enum constant QPrinter::A8
[static,const]new QPrinter_PageSize ptrA9Enum constant QPrinter::A9
[static,const]new QPrinter_PrinterState ptrAbortedEnum constant QPrinter::Aborted
[static,const]new QPrinter_PrinterState ptrActiveEnum constant QPrinter::Active
[static,const]new QPrinter_PrintRange ptrAllPagesEnum constant QPrinter::AllPages
[static,const]new QPrinter_PaperSource ptrAutoEnum constant QPrinter::Auto
[static,const]new QPrinter_PageSize ptrB0Enum constant QPrinter::B0
[static,const]new QPrinter_PageSize ptrB1Enum constant QPrinter::B1
[static,const]new QPrinter_PageSize ptrB10Enum constant QPrinter::B10
[static,const]new QPrinter_PageSize ptrB2Enum constant QPrinter::B2
[static,const]new QPrinter_PageSize ptrB3Enum constant QPrinter::B3
[static,const]new QPrinter_PageSize ptrB4Enum constant QPrinter::B4
[static,const]new QPrinter_PageSize ptrB5Enum constant QPrinter::B5
[static,const]new QPrinter_PageSize ptrB6Enum constant QPrinter::B6
[static,const]new QPrinter_PageSize ptrB7Enum constant QPrinter::B7
[static,const]new QPrinter_PageSize ptrB8Enum constant QPrinter::B8
[static,const]new QPrinter_PageSize ptrB9Enum constant QPrinter::B9
[static,const]new QPrinter_PageSize ptrC5EEnum constant QPrinter::C5E
[static,const]new QPrinter_PaperSource ptrCassetteEnum constant QPrinter::Cassette
[static,const]new QPrinter_Unit ptrCiceroEnum constant QPrinter::Cicero
[static,const]new QPrinter_ColorMode ptrColorEnum constant QPrinter::Color
[static,const]new QPrinter_PageSize ptrComm10EEnum constant QPrinter::Comm10E
[static,const]new QPrinter_PageSize ptrCustomEnum constant QPrinter::Custom
[static,const]new QPrinter_PageSize ptrDLEEnum constant QPrinter::DLE
[static,const]new QPrinter_Unit ptrDevicePixelEnum constant QPrinter::DevicePixel
[static,const]new QPrinter_Unit ptrDidotEnum constant QPrinter::Didot
[static,const]new QPrinter_DuplexMode ptrDuplexAutoEnum constant QPrinter::DuplexAuto
[static,const]new QPrinter_DuplexMode ptrDuplexLongSideEnum constant QPrinter::DuplexLongSide
[static,const]new QPrinter_DuplexMode ptrDuplexNoneEnum constant QPrinter::DuplexNone
[static,const]new QPrinter_DuplexMode ptrDuplexShortSideEnum constant QPrinter::DuplexShortSide
[static,const]new QPrinter_PaperSource ptrEnvelopeEnum constant QPrinter::Envelope
[static,const]new QPrinter_PaperSource ptrEnvelopeManualEnum constant QPrinter::EnvelopeManual
[static,const]new QPrinter_PrinterState ptrErrorEnum constant QPrinter::Error
[static,const]new QPrinter_PageSize ptrExecutiveEnum constant QPrinter::Executive
[static,const]new QPrinter_PageOrder ptrFirstPageFirstEnum constant QPrinter::FirstPageFirst
[static,const]new QPrinter_PageSize ptrFolioEnum constant QPrinter::Folio
[static,const]new QPrinter_PaperSource ptrFormSourceEnum constant QPrinter::FormSource
[static,const]new QPrinter_ColorMode ptrGrayScaleEnum constant QPrinter::GrayScale
[static,const]new QPrinter_PrinterMode ptrHighResolutionEnum constant QPrinter::HighResolution
[static,const]new QPrinter_PrinterState ptrIdleEnum constant QPrinter::Idle
[static,const]new QPrinter_Unit ptrInchEnum constant QPrinter::Inch
[static,const]new QPrinter_Orientation ptrLandscapeEnum constant QPrinter::Landscape
[static,const]new QPrinter_PaperSource ptrLargeCapacityEnum constant QPrinter::LargeCapacity
[static,const]new QPrinter_PaperSource ptrLargeFormatEnum constant QPrinter::LargeFormat
[static,const]new QPrinter_PageOrder ptrLastPageFirstEnum constant QPrinter::LastPageFirst
[static,const]new QPrinter_PageSize ptrLedgerEnum constant QPrinter::Ledger
[static,const]new QPrinter_PageSize ptrLegalEnum constant QPrinter::Legal
[static,const]new QPrinter_PageSize ptrLetterEnum constant QPrinter::Letter
[static,const]new QPrinter_PaperSource ptrLowerEnum constant QPrinter::Lower
[static,const]new QPrinter_PaperSource ptrManualEnum constant QPrinter::Manual
[static,const]new QPrinter_PaperSource ptrMaxPageSourceEnum constant QPrinter::MaxPageSource
[static,const]new QPrinter_PaperSource ptrMiddleEnum constant QPrinter::Middle
[static,const]new QPrinter_Unit ptrMillimeterEnum constant QPrinter::Millimeter
[static,const]new QPrinter_PageSize ptrNPageSizeEnum constant QPrinter::NPageSize
[static,const]new QPrinter_PageSize ptrNPaperSizeEnum constant QPrinter::NPaperSize
[static,const]new QPrinter_OutputFormat ptrNativeFormatEnum constant QPrinter::NativeFormat
[static,const]new QPrinter_PaperSource ptrOnlyOneEnum constant QPrinter::OnlyOne
[static,const]new QPrinter_PrintRange ptrPageRangeEnum constant QPrinter::PageRange
[static,const]new QPrinter_OutputFormat ptrPdfFormatEnum constant QPrinter::PdfFormat
[static,const]new QPrinter_Unit ptrPicaEnum constant QPrinter::Pica
[static,const]new QPrinter_Unit ptrPointEnum constant QPrinter::Point
[static,const]new QPrinter_Orientation ptrPortraitEnum constant QPrinter::Portrait
[static,const]new QPrinter_OutputFormat ptrPostScriptFormatEnum constant QPrinter::PostScriptFormat
[static,const]new QPrinter_PrinterMode ptrPrinterResolutionEnum constant QPrinter::PrinterResolution
[static,const]new QPrinter_PrinterMode ptrScreenResolutionEnum constant QPrinter::ScreenResolution
[static,const]new QPrinter_PrintRange ptrSelectionEnum constant QPrinter::Selection
[static,const]new QPrinter_PaperSource ptrSmallFormatEnum constant QPrinter::SmallFormat
[static,const]new QPrinter_PageSize ptrTabloidEnum constant QPrinter::Tabloid
[static,const]new QPrinter_PaperSource ptrTractorEnum constant QPrinter::Tractor

Protected methods (static, non-static and constructors)

[virtual,const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QPrinter::metric(QPaintDevice::PaintDeviceMetric)
voidsetEngines(QPrintEngine ptr printEngine,
QPaintEngine ptr paintEngine)
Method void QPrinter::setEngines(QPrintEngine *printEngine, QPaintEngine *paintEngine)

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

[static,const] new QPrinter_PageSize ptr A0

Description: Enum constant QPrinter::A0

[static,const] new QPrinter_PageSize ptr A1

Description: Enum constant QPrinter::A1

[static,const] new QPrinter_PageSize ptr A2

Description: Enum constant QPrinter::A2

[static,const] new QPrinter_PageSize ptr A3

Description: Enum constant QPrinter::A3

[static,const] new QPrinter_PageSize ptr A4

Description: Enum constant QPrinter::A4

[static,const] new QPrinter_PageSize ptr A5

Description: Enum constant QPrinter::A5

[static,const] new QPrinter_PageSize ptr A6

Description: Enum constant QPrinter::A6

[static,const] new QPrinter_PageSize ptr A7

Description: Enum constant QPrinter::A7

[static,const] new QPrinter_PageSize ptr A8

Description: Enum constant QPrinter::A8

[static,const] new QPrinter_PageSize ptr A9

Description: Enum constant QPrinter::A9

[static,const] new QPrinter_PrinterState ptr Aborted

Description: Enum constant QPrinter::Aborted

[static,const] new QPrinter_PrinterState ptr Active

Description: Enum constant QPrinter::Active

[static,const] new QPrinter_PrintRange ptr AllPages

Description: Enum constant QPrinter::AllPages

[static,const] new QPrinter_PaperSource ptr Auto

Description: Enum constant QPrinter::Auto

[static,const] new QPrinter_PageSize ptr B0

Description: Enum constant QPrinter::B0

[static,const] new QPrinter_PageSize ptr B1

Description: Enum constant QPrinter::B1

[static,const] new QPrinter_PageSize ptr B10

Description: Enum constant QPrinter::B10

[static,const] new QPrinter_PageSize ptr B2

Description: Enum constant QPrinter::B2

[static,const] new QPrinter_PageSize ptr B3

Description: Enum constant QPrinter::B3

[static,const] new QPrinter_PageSize ptr B4

Description: Enum constant QPrinter::B4

[static,const] new QPrinter_PageSize ptr B5

Description: Enum constant QPrinter::B5

[static,const] new QPrinter_PageSize ptr B6

Description: Enum constant QPrinter::B6

[static,const] new QPrinter_PageSize ptr B7

Description: Enum constant QPrinter::B7

[static,const] new QPrinter_PageSize ptr B8

Description: Enum constant QPrinter::B8

[static,const] new QPrinter_PageSize ptr B9

Description: Enum constant QPrinter::B9

[static,const] new QPrinter_PageSize ptr C5E

Description: Enum constant QPrinter::C5E

[static,const] new QPrinter_PaperSource ptr Cassette

Description: Enum constant QPrinter::Cassette

[static,const] new QPrinter_Unit ptr Cicero

Description: Enum constant QPrinter::Cicero

[static,const] new QPrinter_ColorMode ptr Color

Description: Enum constant QPrinter::Color

[static,const] new QPrinter_PageSize ptr Comm10E

Description: Enum constant QPrinter::Comm10E

[static,const] new QPrinter_PageSize ptr Custom

Description: Enum constant QPrinter::Custom

[static,const] new QPrinter_PageSize ptr DLE

Description: Enum constant QPrinter::DLE

[static,const] new QPrinter_Unit ptr DevicePixel

Description: Enum constant QPrinter::DevicePixel

[static,const] new QPrinter_Unit ptr Didot

Description: Enum constant QPrinter::Didot

[static,const] new QPrinter_DuplexMode ptr DuplexAuto

Description: Enum constant QPrinter::DuplexAuto

[static,const] new QPrinter_DuplexMode ptr DuplexLongSide

Description: Enum constant QPrinter::DuplexLongSide

[static,const] new QPrinter_DuplexMode ptr DuplexNone

Description: Enum constant QPrinter::DuplexNone

[static,const] new QPrinter_DuplexMode ptr DuplexShortSide

Description: Enum constant QPrinter::DuplexShortSide

[static,const] new QPrinter_PaperSource ptr Envelope

Description: Enum constant QPrinter::Envelope

[static,const] new QPrinter_PaperSource ptr EnvelopeManual

Description: Enum constant QPrinter::EnvelopeManual

[static,const] new QPrinter_PrinterState ptr Error

Description: Enum constant QPrinter::Error

[static,const] new QPrinter_PageSize ptr Executive

Description: Enum constant QPrinter::Executive

[static,const] new QPrinter_PageOrder ptr FirstPageFirst

Description: Enum constant QPrinter::FirstPageFirst

[static,const] new QPrinter_PageSize ptr Folio

Description: Enum constant QPrinter::Folio

[static,const] new QPrinter_PaperSource ptr FormSource

Description: Enum constant QPrinter::FormSource

[static,const] new QPrinter_ColorMode ptr GrayScale

Description: Enum constant QPrinter::GrayScale

[static,const] new QPrinter_PrinterMode ptr HighResolution

Description: Enum constant QPrinter::HighResolution

[static,const] new QPrinter_PrinterState ptr Idle

Description: Enum constant QPrinter::Idle

[static,const] new QPrinter_Unit ptr Inch

Description: Enum constant QPrinter::Inch

[static,const] new QPrinter_Orientation ptr Landscape

Description: Enum constant QPrinter::Landscape

[static,const] new QPrinter_PaperSource ptr LargeCapacity

Description: Enum constant QPrinter::LargeCapacity

[static,const] new QPrinter_PaperSource ptr LargeFormat

Description: Enum constant QPrinter::LargeFormat

[static,const] new QPrinter_PageOrder ptr LastPageFirst

Description: Enum constant QPrinter::LastPageFirst

[static,const] new QPrinter_PageSize ptr Ledger

Description: Enum constant QPrinter::Ledger

[static,const] new QPrinter_PageSize ptr Legal

Description: Enum constant QPrinter::Legal

[static,const] new QPrinter_PageSize ptr Letter

Description: Enum constant QPrinter::Letter

[static,const] new QPrinter_PaperSource ptr Lower

Description: Enum constant QPrinter::Lower

[static,const] new QPrinter_PaperSource ptr Manual

Description: Enum constant QPrinter::Manual

[static,const] new QPrinter_PaperSource ptr MaxPageSource

Description: Enum constant QPrinter::MaxPageSource

[static,const] new QPrinter_PaperSource ptr Middle

Description: Enum constant QPrinter::Middle

[static,const] new QPrinter_Unit ptr Millimeter

Description: Enum constant QPrinter::Millimeter

[static,const] new QPrinter_PageSize ptr NPageSize

Description: Enum constant QPrinter::NPageSize

[static,const] new QPrinter_PageSize ptr NPaperSize

Description: Enum constant QPrinter::NPaperSize

[static,const] new QPrinter_OutputFormat ptr NativeFormat

Description: Enum constant QPrinter::NativeFormat

[static,const] new QPrinter_PaperSource ptr OnlyOne

Description: Enum constant QPrinter::OnlyOne

[static,const] new QPrinter_PrintRange ptr PageRange

Description: Enum constant QPrinter::PageRange

[static,const] new QPrinter_OutputFormat ptr PdfFormat

Description: Enum constant QPrinter::PdfFormat

[static,const] new QPrinter_Unit ptr Pica

Description: Enum constant QPrinter::Pica

[static,const] new QPrinter_Unit ptr Point

Description: Enum constant QPrinter::Point

[static,const] new QPrinter_Orientation ptr Portrait

Description: Enum constant QPrinter::Portrait

[static,const] new QPrinter_OutputFormat ptr PostScriptFormat

Description: Enum constant QPrinter::PostScriptFormat

[static,const] new QPrinter_PrinterMode ptr PrinterResolution

Description: Enum constant QPrinter::PrinterResolution

[static,const] new QPrinter_PrinterMode ptr ScreenResolution

Description: Enum constant QPrinter::ScreenResolution

[static,const] new QPrinter_PrintRange ptr Selection

Description: Enum constant QPrinter::Selection

[static,const] new QPrinter_PaperSource ptr SmallFormat

Description: Enum constant QPrinter::SmallFormat

[static,const] new QPrinter_PageSize ptr Tabloid

Description: Enum constant QPrinter::Tabloid

[static,const] new QPrinter_PaperSource ptr Tractor

Description: Enum constant QPrinter::Tractor

void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

[const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

bool abort

Description: Method bool QPrinter::abort()

[const] int actualNumCopies

Description: Method int QPrinter::actualNumCopies()

[const] bool collateCopies

Description: Method bool QPrinter::collateCopies()

Python specific notes:

The object exposes a readable attribute 'collateCopies'. This is the getter.

void collateCopies=(bool collate)

Description: Method void QPrinter::setCollateCopies(bool collate)

Python specific notes:

The object exposes a writable attribute 'collateCopies'. This is the setter.

[const] QPrinter_ColorMode colorMode

Description: Method QPrinter::ColorMode QPrinter::colorMode()

Python specific notes:

The object exposes a readable attribute 'colorMode'. This is the getter.

void colorMode=(const QPrinter_ColorMode arg1)

Description: Method void QPrinter::setColorMode(QPrinter::ColorMode)

Python specific notes:

The object exposes a writable attribute 'colorMode'. This is the setter.

void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

[const] string creator

Description: Method QString QPrinter::creator()

Python specific notes:

The object exposes a readable attribute 'creator'. This is the getter.

void creator=(string arg1)

Description: Method void QPrinter::setCreator(const QString &)

Python specific notes:

The object exposes a writable attribute 'creator'. This is the setter.

void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

[const] string docName

Description: Method QString QPrinter::docName()

Python specific notes:

The object exposes a readable attribute 'docName'. This is the getter.

void docName=(string arg1)

Description: Method void QPrinter::setDocName(const QString &)

Python specific notes:

The object exposes a writable attribute 'docName'. This is the setter.

[const] bool doubleSidedPrinting

Description: Method bool QPrinter::doubleSidedPrinting()

Python specific notes:

The object exposes a readable attribute 'doubleSidedPrinting'. This is the getter.

void doubleSidedPrinting=(bool enable)

Description: Method void QPrinter::setDoubleSidedPrinting(bool enable)

Python specific notes:

The object exposes a writable attribute 'doubleSidedPrinting'. This is the setter.

[const] QPrinter_DuplexMode duplex

Description: Method QPrinter::DuplexMode QPrinter::duplex()

Python specific notes:

The object exposes a readable attribute 'duplex'. This is the getter.

void duplex=(const QPrinter_DuplexMode duplex)

Description: Method void QPrinter::setDuplex(QPrinter::DuplexMode duplex)

Python specific notes:

The object exposes a writable attribute 'duplex'. This is the setter.

[const] bool fontEmbeddingEnabled

Description: Method bool QPrinter::fontEmbeddingEnabled()

Python specific notes:

The object exposes a readable attribute 'fontEmbeddingEnabled'. This is the getter.

void fontEmbeddingEnabled=(bool enable)

Description: Method void QPrinter::setFontEmbeddingEnabled(bool enable)

Python specific notes:

The object exposes a writable attribute 'fontEmbeddingEnabled'. This is the setter.

[const] int fromPage

Description: Method int QPrinter::fromPage()

[const] bool fullPage

Description: Method bool QPrinter::fullPage()

Python specific notes:

The object exposes a readable attribute 'fullPage'. This is the getter.

void fullPage=(bool arg1)

Description: Method void QPrinter::setFullPage(bool)

Python specific notes:

The object exposes a writable attribute 'fullPage'. This is the setter.

[const] void getPageMargins(double ptr left,double ptr top,double ptr right,double ptr bottom,const QPrinter_Unit unit)

Description: Method void QPrinter::getPageMargins(double *left, double *top, double *right, double *bottom, QPrinter::Unit unit)

[const] bool isValid?

Description: Method bool QPrinter::isValid()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

[virtual,const] int metric(const QPaintDevice_PaintDeviceMetric arg1)

Description: Virtual method int QPrinter::metric(QPaintDevice::PaintDeviceMetric)

This method can be reimplemented in a derived class.

[static] new QPrinter new(const QPrinter_PrinterMode mode = QPrinter::ScreenResolution)

Description: Constructor QPrinter::QPrinter(QPrinter::PrinterMode mode)

This method creates an object of class QPrinter.

Python specific notes:

This method is the default initializer of the object

[static] new QPrinter new(const QPrinterInfo printer,const QPrinter_PrinterMode mode = QPrinter::ScreenResolution)

Description: Constructor QPrinter::QPrinter(const QPrinterInfo &printer, QPrinter::PrinterMode mode)

This method creates an object of class QPrinter.

Python specific notes:

This method is the default initializer of the object

bool newPage

Description: Method bool QPrinter::newPage()

[const] int numCopies

Description: Method int QPrinter::numCopies()

Python specific notes:

The object exposes a readable attribute 'numCopies'. This is the getter.

void numCopies=(int arg1)

Description: Method void QPrinter::setNumCopies(int)

Python specific notes:

The object exposes a writable attribute 'numCopies'. This is the setter.

[const] QPrinter_Orientation orientation

Description: Method QPrinter::Orientation QPrinter::orientation()

Python specific notes:

The object exposes a readable attribute 'orientation'. This is the getter.

void orientation=(const QPrinter_Orientation arg1)

Description: Method void QPrinter::setOrientation(QPrinter::Orientation)

Python specific notes:

The object exposes a writable attribute 'orientation'. This is the setter.

[const] string outputFileName

Description: Method QString QPrinter::outputFileName()

Python specific notes:

The object exposes a readable attribute 'outputFileName'. This is the getter.

void outputFileName=(string arg1)

Description: Method void QPrinter::setOutputFileName(const QString &)

Python specific notes:

The object exposes a writable attribute 'outputFileName'. This is the setter.

[const] QPrinter_OutputFormat outputFormat

Description: Method QPrinter::OutputFormat QPrinter::outputFormat()

Python specific notes:

The object exposes a readable attribute 'outputFormat'. This is the getter.

void outputFormat=(const QPrinter_OutputFormat format)

Description: Method void QPrinter::setOutputFormat(QPrinter::OutputFormat format)

Python specific notes:

The object exposes a writable attribute 'outputFormat'. This is the setter.

[const] QPrinter_PageOrder pageOrder

Description: Method QPrinter::PageOrder QPrinter::pageOrder()

Python specific notes:

The object exposes a readable attribute 'pageOrder'. This is the getter.

void pageOrder=(const QPrinter_PageOrder arg1)

Description: Method void QPrinter::setPageOrder(QPrinter::PageOrder)

Python specific notes:

The object exposes a writable attribute 'pageOrder'. This is the setter.

[const] QRect pageRect

Description: Method QRect QPrinter::pageRect()

[const] QRectF pageRect(const QPrinter_Unit arg1)

Description: Method QRectF QPrinter::pageRect(QPrinter::Unit)

[const] QPrinter_PageSize pageSize

Description: Method QPrinter::PageSize QPrinter::pageSize()

Python specific notes:

The object exposes a readable attribute 'pageSize'. This is the getter.

void pageSize=(const QPrinter_PageSize arg1)

Description: Method void QPrinter::setPageSize(QPrinter::PageSize)

Python specific notes:

The object exposes a writable attribute 'pageSize'. This is the setter.

[virtual,const] QPaintEngine ptr paintEngine

Description: Virtual method QPaintEngine *QPrinter::paintEngine()

This method can be reimplemented in a derived class.

[const] QRect paperRect

Description: Method QRect QPrinter::paperRect()

[const] QRectF paperRect(const QPrinter_Unit arg1)

Description: Method QRectF QPrinter::paperRect(QPrinter::Unit)

[const] QPrinter_PageSize paperSize

Description: Method QPrinter::PageSize QPrinter::paperSize()

Python specific notes:

The object exposes a readable attribute 'paperSize'. This is the getter.

[const] QSizeF paperSize(const QPrinter_Unit unit)

Description: Method QSizeF QPrinter::paperSize(QPrinter::Unit unit)

Python specific notes:

This method is available as method 'paperSize_' in Python

void paperSize=(const QPrinter_PageSize arg1)

Description: Method void QPrinter::setPaperSize(QPrinter::PageSize)

Python specific notes:

The object exposes a writable attribute 'paperSize'. This is the setter.

[const] QPrinter_PaperSource paperSource

Description: Method QPrinter::PaperSource QPrinter::paperSource()

Python specific notes:

The object exposes a readable attribute 'paperSource'. This is the getter.

void paperSource=(const QPrinter_PaperSource arg1)

Description: Method void QPrinter::setPaperSource(QPrinter::PaperSource)

Python specific notes:

The object exposes a writable attribute 'paperSource'. This is the setter.

[const] QPrintEngine ptr printEngine

Description: Method QPrintEngine *QPrinter::printEngine()

[const] string printProgram

Description: Method QString QPrinter::printProgram()

Python specific notes:

The object exposes a readable attribute 'printProgram'. This is the getter.

void printProgram=(string arg1)

Description: Method void QPrinter::setPrintProgram(const QString &)

Python specific notes:

The object exposes a writable attribute 'printProgram'. This is the setter.

[const] QPrinter_PrintRange printRange

Description: Method QPrinter::PrintRange QPrinter::printRange()

Python specific notes:

The object exposes a readable attribute 'printRange'. This is the getter.

void printRange=(const QPrinter_PrintRange range)

Description: Method void QPrinter::setPrintRange(QPrinter::PrintRange range)

Python specific notes:

The object exposes a writable attribute 'printRange'. This is the setter.

[const] string printerName

Description: Method QString QPrinter::printerName()

Python specific notes:

The object exposes a readable attribute 'printerName'. This is the getter.

void printerName=(string arg1)

Description: Method void QPrinter::setPrinterName(const QString &)

Python specific notes:

The object exposes a writable attribute 'printerName'. This is the setter.

[const] QPrinter_PrinterState printerState

Description: Method QPrinter::PrinterState QPrinter::printerState()

[const] int resolution

Description: Method int QPrinter::resolution()

Python specific notes:

The object exposes a readable attribute 'resolution'. This is the getter.

void resolution=(int arg1)

Description: Method void QPrinter::setResolution(int)

Python specific notes:

The object exposes a writable attribute 'resolution'. This is the setter.

void setCollateCopies(bool collate)

Description: Method void QPrinter::setCollateCopies(bool collate)

Python specific notes:

The object exposes a writable attribute 'collateCopies'. This is the setter.

void setColorMode(const QPrinter_ColorMode arg1)

Description: Method void QPrinter::setColorMode(QPrinter::ColorMode)

Python specific notes:

The object exposes a writable attribute 'colorMode'. This is the setter.

void setCreator(string arg1)

Description: Method void QPrinter::setCreator(const QString &)

Python specific notes:

The object exposes a writable attribute 'creator'. This is the setter.

void setDocName(string arg1)

Description: Method void QPrinter::setDocName(const QString &)

Python specific notes:

The object exposes a writable attribute 'docName'. This is the setter.

void setDoubleSidedPrinting(bool enable)

Description: Method void QPrinter::setDoubleSidedPrinting(bool enable)

Python specific notes:

The object exposes a writable attribute 'doubleSidedPrinting'. This is the setter.

void setDuplex(const QPrinter_DuplexMode duplex)

Description: Method void QPrinter::setDuplex(QPrinter::DuplexMode duplex)

Python specific notes:

The object exposes a writable attribute 'duplex'. This is the setter.

void setEngines(QPrintEngine ptr printEngine,QPaintEngine ptr paintEngine)

Description: Method void QPrinter::setEngines(QPrintEngine *printEngine, QPaintEngine *paintEngine)

This method is protected and can only be called from inside a derived class.

void setFontEmbeddingEnabled(bool enable)

Description: Method void QPrinter::setFontEmbeddingEnabled(bool enable)

Python specific notes:

The object exposes a writable attribute 'fontEmbeddingEnabled'. This is the setter.

void setFromTo(int fromPage,int toPage)

Description: Method void QPrinter::setFromTo(int fromPage, int toPage)

void setFullPage(bool arg1)

Description: Method void QPrinter::setFullPage(bool)

Python specific notes:

The object exposes a writable attribute 'fullPage'. This is the setter.

void setNumCopies(int arg1)

Description: Method void QPrinter::setNumCopies(int)

Python specific notes:

The object exposes a writable attribute 'numCopies'. This is the setter.

void setOrientation(const QPrinter_Orientation arg1)

Description: Method void QPrinter::setOrientation(QPrinter::Orientation)

Python specific notes:

The object exposes a writable attribute 'orientation'. This is the setter.

void setOutputFileName(string arg1)

Description: Method void QPrinter::setOutputFileName(const QString &)

Python specific notes:

The object exposes a writable attribute 'outputFileName'. This is the setter.

void setOutputFormat(const QPrinter_OutputFormat format)

Description: Method void QPrinter::setOutputFormat(QPrinter::OutputFormat format)

Python specific notes:

The object exposes a writable attribute 'outputFormat'. This is the setter.

void setPageMargins(double left,double top,double right,double bottom,const QPrinter_Unit unit)

Description: Method void QPrinter::setPageMargins(double left, double top, double right, double bottom, QPrinter::Unit unit)

void setPageOrder(const QPrinter_PageOrder arg1)

Description: Method void QPrinter::setPageOrder(QPrinter::PageOrder)

Python specific notes:

The object exposes a writable attribute 'pageOrder'. This is the setter.

void setPageSize(const QPrinter_PageSize arg1)

Description: Method void QPrinter::setPageSize(QPrinter::PageSize)

Python specific notes:

The object exposes a writable attribute 'pageSize'. This is the setter.

void setPaperSize(const QPrinter_PageSize arg1)

Description: Method void QPrinter::setPaperSize(QPrinter::PageSize)

Python specific notes:

The object exposes a writable attribute 'paperSize'. This is the setter.

void setPaperSize(const QSizeF paperSize,const QPrinter_Unit unit)

Description: Method void QPrinter::setPaperSize(const QSizeF &paperSize, QPrinter::Unit unit)

void setPaperSource(const QPrinter_PaperSource arg1)

Description: Method void QPrinter::setPaperSource(QPrinter::PaperSource)

Python specific notes:

The object exposes a writable attribute 'paperSource'. This is the setter.

void setPrintProgram(string arg1)

Description: Method void QPrinter::setPrintProgram(const QString &)

Python specific notes:

The object exposes a writable attribute 'printProgram'. This is the setter.

void setPrintRange(const QPrinter_PrintRange range)

Description: Method void QPrinter::setPrintRange(QPrinter::PrintRange range)

Python specific notes:

The object exposes a writable attribute 'printRange'. This is the setter.

void setPrinterName(string arg1)

Description: Method void QPrinter::setPrinterName(const QString &)

Python specific notes:

The object exposes a writable attribute 'printerName'. This is the setter.

void setResolution(int arg1)

Description: Method void QPrinter::setResolution(int)

Python specific notes:

The object exposes a writable attribute 'resolution'. This is the setter.

[const] int[] supportedResolutions

Description: Method QList<int> QPrinter::supportedResolutions()

[const] int toPage

Description: Method int QPrinter::toPage()