QPdfWriter Class
The QPdfWriter class is a class to generate PDFs that can be used as a paint device. More...
| Header: | #include <QPdfWriter> |
| qmake: | QT += gui |
| Inherits: | QObject and QPagedPaintDevice. |
Public Functions
| QPdfWriter(const QString & filename) | |
| QPdfWriter(QIODevice * device) | |
| ~QPdfWriter() | |
| QString | creator() const |
| void | setCreator(const QString & creator) |
| void | setTitle(const QString & title) |
| QString | title() 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
- 7 public functions inherited from QPagedPaintDevice
- 13 public functions inherited from QPaintDevice
Reimplemented Protected Functions
| virtual QPaintEngine * | paintEngine() const |
- 9 protected functions inherited from QObject
- 1 protected function inherited from QPaintDevice
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from QObject
- 1 protected function inherited from QPaintDevice
- 2 protected variables 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 to creator.
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 to title.
See also title().
QString QPdfWriter::title() const
Returns the title of the document.
See also setTitle().