API reference - Class QPrinterNotation 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
Public methods
Public static methods and constants
Protected methods (static, non-static and constructors)
Deprecated methods (protected, public, static, non-static and constructors)
Detailed description[static,const] new QPrinter_PageSize ptr A0Description: Enum constant QPrinter::A0 [static,const] new QPrinter_PageSize ptr A1Description: Enum constant QPrinter::A1 [static,const] new QPrinter_PageSize ptr A2Description: Enum constant QPrinter::A2 [static,const] new QPrinter_PageSize ptr A3Description: Enum constant QPrinter::A3 [static,const] new QPrinter_PageSize ptr A4Description: Enum constant QPrinter::A4 [static,const] new QPrinter_PageSize ptr A5Description: Enum constant QPrinter::A5 [static,const] new QPrinter_PageSize ptr A6Description: Enum constant QPrinter::A6 [static,const] new QPrinter_PageSize ptr A7Description: Enum constant QPrinter::A7 [static,const] new QPrinter_PageSize ptr A8Description: Enum constant QPrinter::A8 [static,const] new QPrinter_PageSize ptr A9Description: Enum constant QPrinter::A9 [static,const] new QPrinter_PrinterState ptr AbortedDescription: Enum constant QPrinter::Aborted [static,const] new QPrinter_PrinterState ptr ActiveDescription: Enum constant QPrinter::Active [static,const] new QPrinter_PrintRange ptr AllPagesDescription: Enum constant QPrinter::AllPages [static,const] new QPrinter_PaperSource ptr AutoDescription: Enum constant QPrinter::Auto [static,const] new QPrinter_PageSize ptr B0Description: Enum constant QPrinter::B0 [static,const] new QPrinter_PageSize ptr B1Description: Enum constant QPrinter::B1 [static,const] new QPrinter_PageSize ptr B10Description: Enum constant QPrinter::B10 [static,const] new QPrinter_PageSize ptr B2Description: Enum constant QPrinter::B2 [static,const] new QPrinter_PageSize ptr B3Description: Enum constant QPrinter::B3 [static,const] new QPrinter_PageSize ptr B4Description: Enum constant QPrinter::B4 [static,const] new QPrinter_PageSize ptr B5Description: Enum constant QPrinter::B5 [static,const] new QPrinter_PageSize ptr B6Description: Enum constant QPrinter::B6 [static,const] new QPrinter_PageSize ptr B7Description: Enum constant QPrinter::B7 [static,const] new QPrinter_PageSize ptr B8Description: Enum constant QPrinter::B8 [static,const] new QPrinter_PageSize ptr B9Description: Enum constant QPrinter::B9 [static,const] new QPrinter_PageSize ptr C5EDescription: Enum constant QPrinter::C5E [static,const] new QPrinter_PaperSource ptr CassetteDescription: Enum constant QPrinter::Cassette [static,const] new QPrinter_Unit ptr CiceroDescription: Enum constant QPrinter::Cicero [static,const] new QPrinter_ColorMode ptr ColorDescription: Enum constant QPrinter::Color [static,const] new QPrinter_PageSize ptr Comm10EDescription: Enum constant QPrinter::Comm10E [static,const] new QPrinter_PageSize ptr CustomDescription: Enum constant QPrinter::Custom [static,const] new QPrinter_PageSize ptr DLEDescription: Enum constant QPrinter::DLE [static,const] new QPrinter_Unit ptr DevicePixelDescription: Enum constant QPrinter::DevicePixel [static,const] new QPrinter_Unit ptr DidotDescription: Enum constant QPrinter::Didot [static,const] new QPrinter_DuplexMode ptr DuplexAutoDescription: Enum constant QPrinter::DuplexAuto [static,const] new QPrinter_DuplexMode ptr DuplexLongSideDescription: Enum constant QPrinter::DuplexLongSide [static,const] new QPrinter_DuplexMode ptr DuplexNoneDescription: Enum constant QPrinter::DuplexNone [static,const] new QPrinter_DuplexMode ptr DuplexShortSideDescription: Enum constant QPrinter::DuplexShortSide [static,const] new QPrinter_PaperSource ptr EnvelopeDescription: Enum constant QPrinter::Envelope [static,const] new QPrinter_PaperSource ptr EnvelopeManualDescription: Enum constant QPrinter::EnvelopeManual [static,const] new QPrinter_PrinterState ptr ErrorDescription: Enum constant QPrinter::Error [static,const] new QPrinter_PageSize ptr ExecutiveDescription: Enum constant QPrinter::Executive [static,const] new QPrinter_PageOrder ptr FirstPageFirstDescription: Enum constant QPrinter::FirstPageFirst [static,const] new QPrinter_PageSize ptr FolioDescription: Enum constant QPrinter::Folio [static,const] new QPrinter_PaperSource ptr FormSourceDescription: Enum constant QPrinter::FormSource [static,const] new QPrinter_ColorMode ptr GrayScaleDescription: Enum constant QPrinter::GrayScale [static,const] new QPrinter_PrinterMode ptr HighResolutionDescription: Enum constant QPrinter::HighResolution [static,const] new QPrinter_PrinterState ptr IdleDescription: Enum constant QPrinter::Idle [static,const] new QPrinter_Unit ptr InchDescription: Enum constant QPrinter::Inch [static,const] new QPrinter_Orientation ptr LandscapeDescription: Enum constant QPrinter::Landscape [static,const] new QPrinter_PaperSource ptr LargeCapacityDescription: Enum constant QPrinter::LargeCapacity [static,const] new QPrinter_PaperSource ptr LargeFormatDescription: Enum constant QPrinter::LargeFormat [static,const] new QPrinter_PageOrder ptr LastPageFirstDescription: Enum constant QPrinter::LastPageFirst [static,const] new QPrinter_PageSize ptr LedgerDescription: Enum constant QPrinter::Ledger [static,const] new QPrinter_PageSize ptr LegalDescription: Enum constant QPrinter::Legal [static,const] new QPrinter_PageSize ptr LetterDescription: Enum constant QPrinter::Letter [static,const] new QPrinter_PaperSource ptr LowerDescription: Enum constant QPrinter::Lower [static,const] new QPrinter_PaperSource ptr ManualDescription: Enum constant QPrinter::Manual [static,const] new QPrinter_PaperSource ptr MaxPageSourceDescription: Enum constant QPrinter::MaxPageSource [static,const] new QPrinter_PaperSource ptr MiddleDescription: Enum constant QPrinter::Middle [static,const] new QPrinter_Unit ptr MillimeterDescription: Enum constant QPrinter::Millimeter [static,const] new QPrinter_PageSize ptr NPageSizeDescription: Enum constant QPrinter::NPageSize [static,const] new QPrinter_PageSize ptr NPaperSizeDescription: Enum constant QPrinter::NPaperSize [static,const] new QPrinter_OutputFormat ptr NativeFormatDescription: Enum constant QPrinter::NativeFormat [static,const] new QPrinter_PaperSource ptr OnlyOneDescription: Enum constant QPrinter::OnlyOne [static,const] new QPrinter_PrintRange ptr PageRangeDescription: Enum constant QPrinter::PageRange [static,const] new QPrinter_OutputFormat ptr PdfFormatDescription: Enum constant QPrinter::PdfFormat [static,const] new QPrinter_Unit ptr PicaDescription: Enum constant QPrinter::Pica [static,const] new QPrinter_Unit ptr PointDescription: Enum constant QPrinter::Point [static,const] new QPrinter_Orientation ptr PortraitDescription: Enum constant QPrinter::Portrait [static,const] new QPrinter_OutputFormat ptr PostScriptFormatDescription: Enum constant QPrinter::PostScriptFormat [static,const] new QPrinter_PrinterMode ptr PrinterResolutionDescription: Enum constant QPrinter::PrinterResolution [static,const] new QPrinter_PrinterMode ptr ScreenResolutionDescription: Enum constant QPrinter::ScreenResolution [static,const] new QPrinter_PrintRange ptr SelectionDescription: Enum constant QPrinter::Selection [static,const] new QPrinter_PaperSource ptr SmallFormatDescription: Enum constant QPrinter::SmallFormat [static,const] new QPrinter_PageSize ptr TabloidDescription: Enum constant QPrinter::Tabloid [static,const] new QPrinter_PaperSource ptr TractorDescription: Enum constant QPrinter::Tractor void _createDescription: 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 _destroyDescription: 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 _manageDescription: 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 _unmanageDescription: 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 abortDescription: Method bool QPrinter::abort() [const] int actualNumCopiesDescription: Method int QPrinter::actualNumCopies() [const] bool collateCopiesDescription: 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 colorModeDescription: 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 createDescription: Ensures the C++ object is created Use of this method is deprecated. Use _create instead [const] string creatorDescription: 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 destroyDescription: 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 docNameDescription: 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 doubleSidedPrintingDescription: 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 duplexDescription: 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 fontEmbeddingEnabledDescription: 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 fromPageDescription: Method int QPrinter::fromPage() [const] bool fullPageDescription: 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 newPageDescription: Method bool QPrinter::newPage() [const] int numCopiesDescription: 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 orientationDescription: 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 outputFileNameDescription: 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 outputFormatDescription: 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 pageOrderDescription: 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 pageRectDescription: Method QRect QPrinter::pageRect() [const] QRectF pageRect(const QPrinter_Unit arg1)Description: Method QRectF QPrinter::pageRect(QPrinter::Unit) [const] QPrinter_PageSize pageSizeDescription: 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 paintEngineDescription: Virtual method QPaintEngine *QPrinter::paintEngine() This method can be reimplemented in a derived class. [const] QRect paperRectDescription: Method QRect QPrinter::paperRect() [const] QRectF paperRect(const QPrinter_Unit arg1)Description: Method QRectF QPrinter::paperRect(QPrinter::Unit) [const] QPrinter_PageSize paperSizeDescription: 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 paperSourceDescription: 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 printEngineDescription: Method QPrintEngine *QPrinter::printEngine() [const] string printProgramDescription: 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 printRangeDescription: 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 printerNameDescription: 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 printerStateDescription: Method QPrinter::PrinterState QPrinter::printerState() [const] int resolutionDescription: 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[] supportedResolutionsDescription: Method QList<int> QPrinter::supportedResolutions() [const] int toPageDescription: Method int QPrinter::toPage() |