QPdfPageSelector Class

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 ().

特性文檔編製

currentPage : int

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 ().

document : QPdfDocument *

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.