Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
22
26{
28 Q_PROPERTY(QQuickPdfDocument* document READ document WRITE setDocument NOTIFY documentChanged FINAL)
29 QML_NAMED_ELEMENT(PdfPageImage)
31
32public:
33 QQuickPdfPageImage(QQuickItem *parent = nullptr);
34 ~QQuickPdfPageImage() override;
35
36 void setDocument(QQuickPdfDocument *document);
37 QQuickPdfDocument *document() const;
38
40 void documentChanged();
41
42protected:
43 void load() override;
44 void documentStatusChanged();
45
47 Q_DECLARE_PRIVATE(QQuickPdfPageImage)
48};
49
51
52#endif // QQUICKPDFPAGEIMAGE_P_H
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
Displays one page from a PDF document.
p1 load("image.bmp")
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define signals
#define Q_PDFQUICK_EXPORT