6#include <private/qobject_p.h>
81 if (m_document == document)
84 m_document = document;
129 [
page,
imageSize, options](
const PageRequest &
request){ return request.pageNumber == page && request.imageSize == imageSize && request.options == options; });
158 qRegisterMetaType<QPdfDocumentRenderOptions>();
163 d_ptr->requestFinished(page, imageSize, image, options, requestId);
164 emit pageRendered(page, imageSize, image, options, requestId);
165 d_ptr->handleNextRequest();
286 if (
request.pageNumber == pageNumber
296 request.pageNumber = pageNumber;
309#include "qpdfpagerenderer.moc"
310#include "moc_qpdfpagerenderer.cpp"
void moveToThread(QThread *thread)
Changes the thread affinity for this object and its children.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QThread * thread() const
Returns the thread in which the object lives.
The QPdfDocument class loads a PDF document and renders pages from it.
QImage render(int page, QSize imageSize, QPdfDocumentRenderOptions options=QPdfDocumentRenderOptions())
Renders the page into a QImage of size imageSize according to the provided renderOptions.
Status status
This property holds the current status of the document.
T * data() const noexcept
Returns the value of the pointer referenced by this object.
void start(Priority=InheritPriority)
bool wait(QDeadlineTimer deadline=QDeadlineTimer(QDeadlineTimer::Forever))
void pageRendered(int page, QSize imageSize, const QImage &image, QPdfDocumentRenderOptions options, quint64 requestId)
void requestPage(quint64 requestId, int page, QSize imageSize, QPdfDocumentRenderOptions options)
void setDocument(QPdfDocument *document)
QSet< QString >::iterator it
Combined button and popup list for selecting options.
QNearFieldTarget::RequestId requestId
#define Q_ARG(Type, data)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei imageSize
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
unsigned long long quint64
QNetworkRequest request(url)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent