QskStackBox

Inherits from QskIndexedLayoutBox, QskBox

Public Slots

  Name
void setCurrentIndex(int index)
void setCurrentItem(const QQuickItem * item)
void clear(bool autoDelete =false)

Public Signals

  Name
void defaultAlignmentChanged(Qt::Alignment )
void currentIndexChanged(int index)
void currentItemChanged(QQuickItem * )

Public Functions

  Name
  QskStackBox(QQuickItem * parent =nullptr)
  QskStackBox(bool autoAddChildren, QQuickItem * parent =nullptr)
  ~QskStackBox() override
bool isEmpty() const
int itemCount() const
QQuickItem * itemAtIndex(int index) const
int indexOf(const QQuickItem * item) const
void addItem(QQuickItem * item)
void addItem(QQuickItem * item, Qt::Alignment alignment)
void insertItem(int index, QQuickItem * item)
void insertItem(int index, QQuickItem * item, Qt::Alignment alignment)
void removeItem(const QQuickItem * item)
void removeAt(int index)
QQuickItem * currentItem() const
int currentIndex() const
void setDefaultAlignment(Qt::Alignment alignment)
Qt::Alignment defaultAlignment() const
void setAnimator(QskStackBoxAnimator * animator)
const QskStackBoxAnimator * animator() const
QskStackBoxAnimator * animator()
QRectF geometryForItemAt(int index) const
void dump() const

Protected Functions

  Name
bool event(QEvent * event) override
void updateLayout() override
QSizeF layoutSizeHint(Qt::SizeHint which, const QSizeF & constraint) const override
QskStackBoxAnimator * effectiveAnimator()

Public Properties

  Name
int currentIndex
QQuickItem * currentItem

Additional inherited members

Public Signals inherited from QskIndexedLayoutBox

  Name
void autoAddChildrenChanged()

Public Functions inherited from QskIndexedLayoutBox

  Name
  QskIndexedLayoutBox(QQuickItem * parent =nullptr)
Constructor.
  ~QskIndexedLayoutBox() override
Destructor.
void setAutoAddChildren(bool on =true)
En/Disable auto appending of children.
bool autoAddChildren() const

Protected Functions inherited from QskIndexedLayoutBox

  Name
void itemChange(ItemChange , const ItemChangeData & ) override
void reparentItem(QQuickItem * item)
void unparentItem(QQuickItem * item)

Public Properties inherited from QskIndexedLayoutBox

  Name
bool autoAddChildren
Flag controlling whether to automatically append children to the layout.

Public Slots Documentation

slot setCurrentIndex

void setCurrentIndex(
    int index
)

slot setCurrentItem

void setCurrentItem(
    const QQuickItem * item
)

slot clear

void clear(
    bool autoDelete =false
)

Public Signals Documentation

signal defaultAlignmentChanged

void defaultAlignmentChanged(
    Qt::Alignment 
)

signal currentIndexChanged

void currentIndexChanged(
    int index
)

signal currentItemChanged

void currentItemChanged(
    QQuickItem * 
)

Public Functions Documentation

function QskStackBox

explicit QskStackBox(
    QQuickItem * parent =nullptr
)

function QskStackBox

QskStackBox(
    bool autoAddChildren,
    QQuickItem * parent =nullptr
)

function ~QskStackBox

~QskStackBox() override

function isEmpty

inline bool isEmpty() const

function itemCount

int itemCount() const

function itemAtIndex

QQuickItem * itemAtIndex(
    int index
) const

function indexOf

int indexOf(
    const QQuickItem * item
) const

function addItem

void addItem(
    QQuickItem * item
)

function addItem

void addItem(
    QQuickItem * item,
    Qt::Alignment alignment
)

function insertItem

void insertItem(
    int index,
    QQuickItem * item
)

function insertItem

void insertItem(
    int index,
    QQuickItem * item,
    Qt::Alignment alignment
)

function removeItem

void removeItem(
    const QQuickItem * item
)

function removeAt

void removeAt(
    int index
)

function currentItem

QQuickItem * currentItem() const

function currentIndex

int currentIndex() const

function setDefaultAlignment

void setDefaultAlignment(
    Qt::Alignment alignment
)

function defaultAlignment

Qt::Alignment defaultAlignment() const

function setAnimator

void setAnimator(
    QskStackBoxAnimator * animator
)

function animator

const QskStackBoxAnimator * animator() const

function animator

QskStackBoxAnimator * animator()

function geometryForItemAt

QRectF geometryForItemAt(
    int index
) const

function dump

void dump() const

Protected Functions Documentation

function event

bool event(
    QEvent * event
) override

function updateLayout

void updateLayout() override

function layoutSizeHint

QSizeF layoutSizeHint(
    Qt::SizeHint which,
    const QSizeF & constraint
) const override

function effectiveAnimator

QskStackBoxAnimator * effectiveAnimator()

Public Property Documentation

property currentIndex

int currentIndex;

property currentItem

QQuickItem * currentItem;

Updated on 28 July 2023 at 14:02:28 CEST