KWidgetsAddons
kpageview.h
KPageView(QWidget *parent=nullptr)
Creates a page view with given parent.
Definition kpageview.cpp:712
QModelIndex currentPage() const
Returns the index for the current page or an invalid index if no current page exists.
Definition kpageview.cpp:784
virtual QAbstractItemView * createView()
Returns the navigation view, depending on the current face type.
Definition kpageview.cpp:894
void setPageFooter(QWidget *footer)
Set a widget as the footer for this Page view.
Definition kpageview.cpp:869
virtual Qt::Alignment viewPosition() const
Returns the position where the navigation view should be located according to the page stack.
Definition kpageview.cpp:933
void setModel(QAbstractItemModel *model)
Sets the model of the page view.
Definition kpageview.cpp:726
QAbstractItemDelegate * itemDelegate() const
Returns the item delegate of the page view.
Definition kpageview.cpp:802
void setPageHeader(QWidget *header)
Set a widget as the header for this Page view It will replace the standard page title.
Definition kpageview.cpp:833
FaceType
This enum is used to decide which type of navigation view shall be used in the page view.
Definition kpageview.h:62
@ Auto
Depending on the number of pages in the model, the Plain (one page), the List (several pages) or the ...
Definition kpageview.h:69
@ Plain
No navigation view will be visible and only the first page of the model will be shown.
Definition kpageview.h:74
virtual bool showPageHeader() const
Returns whether the page header should be visible.
Definition kpageview.cpp:921
void setDefaultWidget(QWidget *widget)
Sets the widget which will be shown when a page is selected that has no own widget set.
Definition kpageview.cpp:812
void currentPageChanged(const QModelIndex ¤t, const QModelIndex &previous)
This signal is emitted whenever the current page changes.
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
typedef Alignment
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.