Dekko
Loading...
Searching...
No Matches
QQuickStack Class Reference

Public Types

enum  Status { Inactive = 0 , Deactivating = 1 , Activating = 2 , Active = 3 }
 

Signals

void statusChanged ()
 
void viewChanged ()
 
void indexChanged ()
 

Public Member Functions

 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)
 

Static Public Member Functions

static QQuickStack * qmlAttachedProperties (QObject *object)
 

Properties

int index
 
int __index
 
Status status
 
Status __status
 
QQuickItem * view
 
QQuickItem * __view
 

Detailed Description

Definition at line 44 of file QQuickStack.h.

Inheritance diagram for QQuickStack:
[legend]
Collaboration diagram for QQuickStack:
[legend]

Member Enumeration Documentation

◆ Status

enum QQuickStack::Status

Definition at line 63 of file QQuickStack.h.

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ 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

Definition at line 63 of file QQuickStack.cpp.

◆ setIndex()

void QQuickStack::setIndex ( int  index)

Definition at line 81 of file QQuickStack.cpp.

◆ setStatus()

void QQuickStack::setStatus ( Status  status)

Definition at line 106 of file QQuickStack.cpp.

◆ setView()

void QQuickStack::setView ( QQuickItem *  view)

Definition at line 126 of file QQuickStack.cpp.

◆ 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.

Property Documentation

◆ __index

int QQuickStack::__index
readwrite

Definition at line 48 of file QQuickStack.h.

◆ __status

Status QQuickStack::__status
readwrite

Definition at line 50 of file QQuickStack.h.

◆ __view

QQuickItem* QQuickStack::__view
readwrite

Definition at line 52 of file QQuickStack.h.

◆ index

int QQuickStack::index
read

Definition at line 47 of file QQuickStack.h.

◆ status

Status QQuickStack::status
read

Definition at line 49 of file QQuickStack.h.

◆ view

QQuickItem* QQuickStack::view
read

Definition at line 51 of file QQuickStack.h.


The documentation for this class was generated from the following files: