Qt 6.x
The Qt SDK
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#include <QtWidgets/qspinbox.h>
9
11
12class QPdfDocument;
15
17{
19
20 Q_PROPERTY(QPdfDocument* document READ document WRITE setDocument NOTIFY documentChanged)
21
22public:
26
27 void setDocument(QPdfDocument *document);
28 QPdfDocument *document() const;
29
32
33protected:
34 int valueFromText(const QString &text) const override;
35 QString textFromValue(int value) const override;
36
37private:
38 Q_DECLARE_PRIVATE(QPdfPageSelector)
40};
41
43
44#endif // QPDFPAGESELECTOR_H
QScopedPointer< QObjectData > d_ptr
Definition qobject.h:338
The QPdfDocument class loads a PDF document and renders pages from it.
Navigation history within a PDF document.
\inmodule QtPdf
void documentChanged(QPdfDocument *document)
\inmodule QtCore
The QSpinBox class provides a spin box widget.
Definition qspinbox.h:16
virtual int valueFromText(const QString &text) const
This virtual function is used by the spin box whenever it needs to interpret text entered by the user...
Definition qspinbox.cpp:511
virtual QString textFromValue(int val) const
This virtual function is used by the spin box whenever it needs to display the given value.
Definition qspinbox.cpp:478
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
QString text
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define Q_PDF_WIDGETS_EXPORT
QObject::connect nullptr
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent