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  · 

QPdfWriter Class

The QPdfWriter class is a class to generate PDFs that can be used as a paint device. More...

 #include <QPdfWriter>

Inherits: QObject and QPagedPaintDevice.

Public Types

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

Public Functions

QPagedPaintDevice()
QPdfWriter(const QString & filename)
QPdfWriter(QIODevice * device)
~QPagedPaintDevice()
virtual ~QPaintDevice()
~QPdfWriter()
int colorCount() const
QString creator() 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
void setCreator(const QString & creator)
virtual void setMargins(const Margins & margins)
virtual void setPageSize(PageSize size)
virtual void setPageSizeMM(const QSizeF & size)
void setTitle(const QString & title)
QString title() const
int width() const
int widthMM() const

Reimplemented Public Functions

virtual bool newPage()
virtual void setMargins(const Margins & m)
virtual void setPageSize(PageSize size)
virtual void setPageSizeMM(const QSizeF & size)
  • 31 public functions inherited from QObject

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

Reimplemented Protected Functions

virtual QPaintEngine * paintEngine() const
  • 9 protected functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signal inherited from QObject
  • 11 static public members inherited from QObject

Detailed Description

The QPdfWriter class is a class to generate PDFs that can be used as a paint device.

QPdfWriter generates PDF out of a series of drawing commands using QPainter. The newPage() method can be used to create several pages.

Member Function Documentation

QPdfWriter::QPdfWriter(const QString & filename)

Constructs a PDF writer that will write the pdf to filename.

QPdfWriter::QPdfWriter(QIODevice * device)

Constructs a PDF writer that will write the pdf to device.

QPdfWriter::~QPdfWriter()

Destroys the pdf writer.

QString QPdfWriter::creator() const

Returns the creator of the document.

See also setCreator().

bool QPdfWriter::newPage() [virtual]

Reimplemented from QPagedPaintDevice::newPage().

QPaintEngine * QPdfWriter::paintEngine() const [virtual protected]

Reimplemented from QPaintDevice::paintEngine().

void QPdfWriter::setCreator(const QString & creator)

Sets the creator of the document.

See also creator().

void QPdfWriter::setMargins(const Margins & m) [virtual]

Reimplemented from QPagedPaintDevice::setMargins().

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

Reimplemented from QPagedPaintDevice::setPageSize().

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

Reimplemented from QPagedPaintDevice::setPageSizeMM().

void QPdfWriter::setTitle(const QString & title)

Sets the title of the document being created.

See also title().

QString QPdfWriter::title() const

Returns the title of the document.

See also setTitle().

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