QPdfPageSelector Class
用于选择 PDF 页面的小工具。更多
Header: | #include <QPdfPageSelector> |
Since: | Qt 6.6 |
Inherits: | QWidget |
属性
- currentPage : int
- currentPageLabel : const QString
- document : QPdfDocument*
公共功能
QPdfPageSelector(QWidget *parent) | |
virtual | ~QPdfPageSelector() override |
int | currentPage() const |
QString | currentPageLabel() const |
QPdfDocument * | document() const |
void | setDocument(QPdfDocument *document) |
公共插槽
void | setCurrentPage(int index) |
信号
void | currentPageChanged(int index) |
void | currentPageLabelChanged(const QString &label) |
void | documentChanged(QPdfDocument *document) |
详细说明
QPdfPageSelector 是一个用于从QPdfDocument 中选择页面标签的 widget。
另请参阅 QPdfDocument::pageLabel().
属性文档
currentPage : int
该属性包含文档中当前页面的索引(基于0
)。
访问功能:
int | currentPage() const |
void | setCurrentPage(int index) |
通知信号:
void | currentPageChanged(int index) |
[read-only]
currentPageLabel : const QString
该属性用于保存与文档当前页面相对应的页面标签。
这是呈现给用户的文本。
访问功能:
QString | currentPageLabel() const |
Notifier 信号:
void | currentPageLabelChanged(const QString &label) |
另请参阅 QPdfDocument::pageLabel().
document : QPdfDocument*
该属性包含要查看的文件。
访问功能:
QPdfDocument * | document() const |
void | setDocument(QPdfDocument *document) |
Notifier 信号:
void | documentChanged(QPdfDocument *document) |
成员函数 文档
[explicit]
QPdfPageSelector::QPdfPageSelector(QWidget *parent)
通过父部件parent 构建 PDF 页面选择器。
[override virtual noexcept]
QPdfPageSelector::~QPdfPageSelector()
销毁页面选择器。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.