Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickpdfpageimage_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKPDFPAGEIMAGE_P_H
5#define QQUICKPDFPAGEIMAGE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtPdfQuick/private/qtpdfquickglobal_p.h>
19#include <QtQuick/private/qquickimage_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QQuickPdfDocument;
24class QQuickPdfPageImagePrivate;
25class Q_PDFQUICK_EXPORT QQuickPdfPageImage : public QQuickImage
26{
27 Q_OBJECT
28 Q_PROPERTY(QQuickPdfDocument* document READ document WRITE setDocument NOTIFY documentChanged FINAL)
29 QML_NAMED_ELEMENT(PdfPageImage)
30 QML_ADDED_IN_VERSION(6, 4)
31
32public:
33 QQuickPdfPageImage(QQuickItem *parent = nullptr);
34 ~QQuickPdfPageImage() override;
35
36 void setDocument(QQuickPdfDocument *document);
37 QQuickPdfDocument *document() const;
38
39signals:
40 void documentChanged();
41
42protected:
43 void load() override;
44 void documentStatusChanged();
45
46private:
47 Q_DECLARE_PRIVATE(QQuickPdfPageImage)
48};
49
50QT_END_NAMESPACE
51
52#endif // QQUICKPDFPAGEIMAGE_P_H