QPdfDestination Class
The QPdfDestination class defines a location on a page in a PDF document, and a suggested zoom level at which it is intended to be viewed. More...
Header: | #include <QPdfDestination> |
Since: | Qt 5.15 |
Properties
Public Functions
QPdfDestination(const QPdfDestination &other) | |
QPdfDestination(QPdfDestination &&other) | |
~QPdfDestination() | |
bool | isValid() const |
QPointF | location() const |
int | page() const |
void | swap(QPdfDestination &other) |
qreal | zoom() const |
QPdfDestination & | operator=(const QPdfDestination &other) |
QPdfDestination & | operator=(QPdfDestination &&other) |
Static Public Members
const QMetaObject | staticMetaObject |
Protected Functions
QPdfDestination() | |
QPdfDestination(int page, QPointF location, qreal zoom) | |
QPdfDestination(QPdfDestinationPrivate *d) |
Protected Variables
QExplicitlySharedDataPointer<QPdfDestinationPrivate> | d |
Detailed Description
The QPdfDestination class defines a location on a page in a PDF document, and a suggested zoom level at which it is intended to be viewed.
Property Documentation
location : const QPointF
This property holds the location on the page, in units of points.
Access functions:
QPointF | location() const |
page : const int
This property holds the page number.
Access functions:
int | page() const |
valid : const bool
This property holds whether the destination is valid.
Access functions:
bool | isValid() const |
zoom : const qreal
This property holds the suggested magnification level, where 1.0 means default scale (1 pixel = 1 point).
Access functions:
qreal | zoom() const |
Member Function Documentation
QPdfDestination::QPdfDestination(const QPdfDestination &other)
Default constructs an instance of QPdfDestination.
QPdfDestination::QPdfDestination(QPdfDestination &&other)
Move-copy constructor.
[protected]
QPdfDestination::QPdfDestination()
Constructs an invalid Destination.
See also valid.
[protected]
QPdfDestination::QPdfDestination(int page, QPointF location, qreal zoom)
Default constructs an instance of QPdfDestination.
[protected]
QPdfDestination::QPdfDestination(QPdfDestinationPrivate *d)
Default constructs an instance of QPdfDestination.
QPdfDestination::~QPdfDestination()
Destroys the instance of QPdfDestination.
void QPdfDestination::swap(QPdfDestination &other)
QPdfDestination &QPdfDestination::operator=(const QPdfDestination &other)
Copy-assignment operator.
QPdfDestination &QPdfDestination::operator=(QPdfDestination &&other)
Move-assignment operator.