Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QPagedPaintDevice Class

The QPagedPaintDevice class is a represents a paintdevice that supports multiple pages. More...

 #include <QPagedPaintDevice>

Inherits: QPaintDevice.

Inherited by: QPdfWriter and QPrinter.

Public Types

class Margins
enum PageSize { A0, A1, A2, A3, ..., Custom }
enum PaintDeviceMetric { PdmWidth, PdmHeight, PdmWidthMM, PdmHeightMM, ..., PdmPhysicalDpiY }

Public Functions

QPagedPaintDevice()
~QPagedPaintDevice()
virtual ~QPaintDevice()
int colorCount() const
int depth() const
int height() const
int heightMM() const
int logicalDpiX() const
int logicalDpiY() const
Margins margins() const
virtual bool newPage() = 0
PageSize pageSize() const
QSizeF pageSizeMM() const
virtual QPaintEngine * paintEngine() const = 0
bool paintingActive() const
int physicalDpiX() const
int physicalDpiY() const
virtual void setMargins(const Margins & margins)
virtual void setPageSize(PageSize size)
virtual void setPageSizeMM(const QSizeF & size)
int width() const
int widthMM() const

Protected Functions

QPaintDevice()
virtual void init(QPainter * painter) const
virtual int metric(PaintDeviceMetric metric) const
virtual QPaintDevice * redirected(QPoint * offset) const
virtual QPainter * sharedPainter() const

Detailed Description

The QPagedPaintDevice class is a represents a paintdevice that supports multiple pages.

Paged paint devices are used to generate output for printing or for formats like PDF. QPdfWriter and QPrinter inherit from it.

Member Type Documentation

enum QPagedPaintDevice::PageSize

This enum type specifies the page size of the paint device.

ConstantValueDescription
QPagedPaintDevice::A05841 x 1189 mm
QPagedPaintDevice::A16594 x 841 mm
QPagedPaintDevice::A27420 x 594 mm
QPagedPaintDevice::A38297 x 420 mm
QPagedPaintDevice::A40210 x 297 mm, 8.26 x 11.69 inches
QPagedPaintDevice::A59148 x 210 mm
QPagedPaintDevice::A610105 x 148 mm
QPagedPaintDevice::A71174 x 105 mm
QPagedPaintDevice::A81252 x 74 mm
QPagedPaintDevice::A91337 x 52 mm
QPagedPaintDevice::B0141000 x 1414 mm
QPagedPaintDevice::B115707 x 1000 mm
QPagedPaintDevice::B217500 x 707 mm
QPagedPaintDevice::B318353 x 500 mm
QPagedPaintDevice::B419250 x 353 mm
QPagedPaintDevice::B51176 x 250 mm, 6.93 x 9.84 inches
QPagedPaintDevice::B620125 x 176 mm
QPagedPaintDevice::B72188 x 125 mm
QPagedPaintDevice::B82262 x 88 mm
QPagedPaintDevice::B92333 x 62 mm
QPagedPaintDevice::B101631 x 44 mm
QPagedPaintDevice::C5E24163 x 229 mm
QPagedPaintDevice::Comm10E25105 x 241 mm, U.S. Common 10 Envelope
QPagedPaintDevice::DLE26110 x 220 mm
QPagedPaintDevice::Executive47.5 x 10 inches, 190.5 x 254 mm
QPagedPaintDevice::Folio27210 x 330 mm
QPagedPaintDevice::Ledger28431.8 x 279.4 mm
QPagedPaintDevice::Legal38.5 x 14 inches, 215.9 x 355.6 mm
QPagedPaintDevice::Letter28.5 x 11 inches, 215.9 x 279.4 mm
QPagedPaintDevice::Tabloid29279.4 x 431.8 mm
QPagedPaintDevice::Custom30Unknown, or a user defined size.

The page size can also be specified in millimeters using setPageSizeMM(). In this case the page size enum is set to Custom.

Member Function Documentation

QPagedPaintDevice::QPagedPaintDevice()

Constructs a new paged paint device.

QPagedPaintDevice::~QPagedPaintDevice()

Destroys the object.

Margins QPagedPaintDevice::margins() const

returns the current margins of the paint device. The default is 0.

/sa setMargins

See also setMargins().

bool QPagedPaintDevice::newPage() [pure virtual]

Starts a new page.

PageSize QPagedPaintDevice::pageSize() const

Returns the currently used page size.

See also setPageSize().

QSizeF QPagedPaintDevice::pageSizeMM() const

Returns the page size in millimeters.

See also setPageSizeMM().

void QPagedPaintDevice::setMargins(const Margins & margins) [virtual]

Sets the margins to be used to margins.

Margins are specified in millimeters.

The margins are purely a hint to the drawing method. They don't affect the coordinate system or clipping.

See also margins.

void QPagedPaintDevice::setPageSize(PageSize size) [virtual]

Sets the size of the a page to size.

See also pageSize() and setPageSizeMM.

void QPagedPaintDevice::setPageSizeMM(const QSizeF & size) [virtual]

Sets the page size to size. size is specified in millimeters.

See also pageSizeMM().

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web