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 )

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.