KPageModel Class Reference
from PyKDE4.kdeui import *
Inherits: QAbstractItemModel → QObject
Subclasses: KPageWidgetModel
Detailed Description
A base class for a model used by KPageView.
This class is an abstract base class which must be used to implement custom models for KPageView. Additional to the the standard Qt.ItemDataRoles it provides the two roles
which are used to return a header string for a page and a QWidget pointer to the page itself.
Example:\n
KPageView *view = new KPageView( this ); KPageModel *model = new MyPageModel( this ); view->setModel( model );
- See also:
- KPageView
Enumerations | |
Role | { HeaderRole, WidgetRole } |
Methods | |
__init__ (self, QObject parent=0) | |
__init__ (self, KPageModelPrivate dd, QObject parent) |
Method Documentation
__init__ | ( | self, | ||
QObject | parent=0 | |||
) |
Constructs a page model with the given parent.
__init__ | ( | self, | ||
KPageModelPrivate | dd, | |||
QObject | parent | |||
) |
Enumeration Documentation
Role |
A string to be rendered as page header.
- Enumerator:
-
HeaderRole = Qt::UserRole+1 WidgetRole