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
qpdfpageselector.h
Go to the documentation of this file.
1
// Copyright (C) 2023 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 QPDFPAGESELECTOR_H
5
#define QPDFPAGESELECTOR_H
6
7
#include <QtPdfWidgets/qtpdfwidgetsglobal.h>
8
9
#include <QtWidgets/qwidget.h>
10
11
#include <memory>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QPdfDocument
;
16
class
QPdfPageSelectorPrivate
;
17
18
class
Q_PDF_WIDGETS_EXPORT
QPdfPageSelector
:
public
QWidget
19
{
20
Q_OBJECT
21
22
Q_PROPERTY
(
QPdfDocument
* document READ document WRITE setDocument NOTIFY documentChanged)
23
Q_PROPERTY
(
int
currentPage READ currentPage WRITE setCurrentPage NOTIFY currentPageChanged USER true)
24
Q_PROPERTY
(
QString
currentPageLabel READ currentPageLabel NOTIFY currentPageLabelChanged)
25
public:
26
QPdfPageSelector
() :
QPdfPageSelector
(
nullptr
) {}
27
explicit
QPdfPageSelector
(
QWidget
*parent);
28
~QPdfPageSelector
()
override
;
29
30
void
setDocument(
QPdfDocument
*document);
31
QPdfDocument
*document()
const
;
32
33
int
currentPage()
const
;
34
QString
currentPageLabel()
const
;
35
36
public
Q_SLOTS
:
37
void
setCurrentPage(
int
index
);
38
39
Q_SIGNALS
:
40
void
documentChanged
(
QPdfDocument
*document);
41
void
currentPageChanged
(
int
index
);
42
void
currentPageLabelChanged
(
const
QString
&
label
);
43
44
private
:
45
Q_DECLARE_PRIVATE(
QPdfPageSelector
)
46
const
std::unique_ptr<QPdfPageSelectorPrivate>
d_ptr
;
47
};
48
49
QT_END_NAMESPACE
50
51
#endif
// QPDFPAGESELECTOR_H
QObject::d_ptr
QScopedPointer< QObjectData > d_ptr
Definition
qobject.h:373
QPdfDocument
The QPdfDocument class loads a PDF document and renders pages from it.
Definition
qpdfdocument.h:21
QPdfPageSelectorPrivate
Definition
qpdfpageselector_p.h:53
QPdfPageSelector
\inmodule QtPdf
Definition
qpdfpageselector.h:19
QPdfPageSelector::currentPageLabelChanged
void currentPageLabelChanged(const QString &label)
QPdfPageSelector::currentPageChanged
void currentPageChanged(int index)
QPdfPageSelector::~QPdfPageSelector
~QPdfPageSelector() override
Destroys the page selector.
QPdfPageSelector::documentChanged
void documentChanged(QPdfDocument *document)
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QWidget
The QWidget class is the base class of all user interface objects.
Definition
qwidget.h:99
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
index
GLuint index
[2]
Definition
qopengles2ext.h:331
label
GLuint GLsizei const GLchar * label
[43]
Definition
qopengles2ext.h:156
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SLOTS
#define Q_SLOTS
Definition
qtmetamacros.h:44
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
Q_PDF_WIDGETS_EXPORT
#define Q_PDF_WIDGETS_EXPORT
Definition
qtpdfwidgetsglobal.h:16
qtwebengine
src
pdfwidgets
qpdfpageselector.h
Generated by
1.10.0