A widget for selecting a PDF page. 更多...
头: | #include <QPdfPageSelector> |
Since: | Qt 6.6 |
继承: | QWidget |
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 is a widget for selecting a page label from a QPdfDocument .
另请参阅 QPdfDocument::pageLabel ().
This property holds the index (
0
-based) of the current page in the document.
访问函数:
int | currentPage () const |
void | setCurrentPage (int index ) |
通知程序信号:
void | currentPageChanged (int index ) |
[read-only]
currentPageLabel
: const
QString
This property holds the page label corresponding to the current page in the document.
This is the text presented to the user.
访问函数:
QString | currentPageLabel () const |
通知程序信号:
void | currentPageLabelChanged (const QString & label ) |
另请参阅 QPdfDocument::pageLabel ().
This property holds the document to be viewed.
访问函数:
QPdfDocument * | document () const |
void | setDocument (QPdfDocument * document ) |
通知程序信号:
void | documentChanged (QPdfDocument * document ) |
[explicit]
QPdfPageSelector::
QPdfPageSelector
(
QWidget
*
parent
)
Constructs a PDF page selector with parent widget parent .
[override virtual noexcept]
QPdfPageSelector::
~QPdfPageSelector
()
Destroys the page selector.