|
| enum | Status { Inactive = 0
, Deactivating = 1
, Activating = 2
, Active = 3
} |
| |
|
|
void | statusChanged () |
| |
|
void | viewChanged () |
| |
|
void | indexChanged () |
| |
|
| | QQuickStack (QObject *object=0) |
| | Provides attached properties for items pushed onto a StackView.
|
| |
| int | index () const |
| |
| void | setIndex (int index) |
| |
| Status | status () const |
| |
| void | setStatus (Status status) |
| |
| QQuickItem * | view () const |
| |
| void | setView (QQuickItem *view) |
| |
Definition at line 44 of file QQuickStack.h.
◆ Status
◆ QQuickStack()
| QT_BEGIN_NAMESPACE QQuickStack::QQuickStack |
( |
QObject * |
object = 0 | ) |
|
Provides attached properties for items pushed onto a StackView.
\qmltype Stack \instantiates QQuickStack \inqmlmodule QtQuick.Controls
The Stack type provides attached properties for items pushed onto a \l StackView. It gives specific information about the item, such as its \l status and \l index in the stack \l view the item is in.
- See also
- StackView
Definition at line 55 of file QQuickStack.cpp.
◆ index()
| int QQuickStack::index |
( |
| ) |
const |
\readonly \qmlattachedproperty int Stack::index
This property holds the index of the item inside \l{view}{StackView}, so that \l{StackView::get()}{StackView.get(index)} will return the item itself. If \l{Stack::view}{view} is null, index will be -1.
Definition at line 76 of file QQuickStack.cpp.
◆ qmlAttachedProperties()
| QQuickStack * QQuickStack::qmlAttachedProperties |
( |
QObject * |
object | ) |
|
|
static |
◆ setIndex()
| void QQuickStack::setIndex |
( |
int |
index | ) |
|
◆ setStatus()
| void QQuickStack::setStatus |
( |
Status |
status | ) |
|
◆ setView()
| void QQuickStack::setView |
( |
QQuickItem * |
view | ) |
|
◆ status()
| QQuickStack::Status QQuickStack::status |
( |
| ) |
const |
\readonly \qmlattachedproperty enumeration Stack::status
This property holds the status of the item. It can have one of the following values: \list
Stack.Inactive: the item is not visible
Stack.Activating: the item is transitioning into becoming an active item on the stack
Stack.Active: the item is on top of the stack
Stack.Deactivating: the item is transitioning into becoming inactive \endlist
Definition at line 101 of file QQuickStack.cpp.
◆ view()
| QQuickItem * QQuickStack::view |
( |
| ) |
const |
\readonly \qmlattachedproperty StackView Stack::view
This property holds the StackView the item is in. If the item is not inside a StackView, view will be null.
Definition at line 121 of file QQuickStack.cpp.
◆ __index
◆ __status
| Status QQuickStack::__status |
|
readwrite |
◆ __view
| QQuickItem* QQuickStack::__view |
|
readwrite |
◆ index
◆ status
| Status QQuickStack::status |
|
read |
◆ view
| QQuickItem* QQuickStack::view |
|
read |
The documentation for this class was generated from the following files: