6#include <private/qpdffile_p.h>
7#include <QtQuick/private/qquickimage_p_p.h>
79 auto carrierFile =
d->doc->carrierFile();
80 static int thisRequestProgress = -1;
81 static int thisRequestFinished = -1;
82 if (thisRequestProgress == -1) {
84 QQuickImageBase::staticMetaObject.indexOfSlot(
"requestProgress(qint64,qint64)");
86 QQuickImageBase::staticMetaObject.indexOfSlot(
"requestFinished()");
89 d->pix.loadImageFromDevice(
qmlEngine(
this), carrierFile,
d->url,
90 d->sourceClipRect.toRect(),
d->sourcesize *
d->devicePixelRatio,
93 qCDebug(qLcImg) <<
"loading page" <<
d->currentFrame <<
"of" <<
d->frameCount
94 <<
"from" << carrierFile->fileName() <<
"status" <<
d->pix.status();
96 switch (
d->pix.status()) {
101 d->pix.connectFinished(
this, thisRequestFinished);
102 d->pix.connectDownloadProgress(
this, thisRequestProgress);
103 if (
d->progress != 0.0) {
113 qCDebug(qLcImg) <<
"unexpected status" <<
d->pix.status();
121 const auto status =
d->doc->document()->status();
129#include "moc_qquickpdfpageimage_p.cpp"
Status status
This property holds the current status of the document.
void statusChanged(QPdfDocument::Status status)
void statusChanged(QQuickImageBase::Status)
void progressChanged(qreal progress)
virtual void setSource(const QUrl &url)
The QQuickImageProviderOptions class provides options for QQuickImageProviderWithOptions image reques...
void pixmapChange() override
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QUrl resolvedSource() const
Displays one page from a PDF document.
QQuickPdfPageImagePrivate()
void documentStatusChanged()
~QQuickPdfPageImage() override
QQuickPdfDocument * document
void setDocument(QQuickPdfDocument *document)
\qmlproperty PdfDocument PdfPageImage::document
QQuickPdfPageImage(QQuickItem *parent=nullptr)
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
QQmlEngine * qmlEngine(const QObject *obj)
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
myObject disconnect()
[26]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent