Base class of layouts with index ordered elements.
#include <QskIndexedLayoutBox.h>
Inherits from QskBox
Inherited by QskLinearBox, QskStackBox
Name | |
---|---|
void | autoAddChildrenChanged() |
Name | |
---|---|
QskIndexedLayoutBox(QQuickItem * parent =nullptr) Constructor. |
|
~QskIndexedLayoutBox() override Destructor. |
|
void | setAutoAddChildren(bool on =true) En/Disable auto appending of children. |
bool | autoAddChildren() const |
Name | |
---|---|
void | itemChange(ItemChange , const ItemChangeData & ) override |
void | reparentItem(QQuickItem * item) |
void | unparentItem(QQuickItem * item) |
Name | |
---|---|
bool | autoAddChildren Flag controlling whether to automatically append children to the layout. |
void autoAddChildrenChanged()
See: setAutoAddChildren(), autoAddChildren()
The autoAddChildren property has changed
explicit QskIndexedLayoutBox(
QQuickItem * parent =nullptr
)
Constructor.
Parameters:
Create a layout having autoAddChildren set to false.
~QskIndexedLayoutBox() override
Destructor.
void setAutoAddChildren(
bool on =true
)
En/Disable auto appending of children.
Parameters:
Note: Existing children, that have not been inserted before remain being not seen by the layout.
When autoAddChildren() is enabled new children are automatically appended to the layout. Otherwise items have to be inserted manually using addItem() or insertItem().
bool autoAddChildren() const
Return: Value of the autoAddChildren property
void itemChange(
ItemChange ,
const ItemChangeData &
) override
See: autoAddChildren
Checking ItemChildAddedChange/ItemChildRemovedChange changes to implement the autoAddChildren mode
void reparentItem(
QQuickItem * item
)
void unparentItem(
QQuickItem * item
)
bool autoAddChildren;
Flag controlling whether to automatically append children to the layout.
Note: Children being transparent for positioners are ignored
Par: Access functions:
autoAddChildren(), setAutoAddChildren(), autoAddChildrenChanged()
When autoAddChildren is enabled new children are automatically appended to the layout. Otherwise items have to be inserted manually using addItem() or insertItem().
Updated on 28 July 2023 at 14:02:28 CEST