QskGridBox

Inherits from QskBox

Public Slots

  Name
void invalidate()
void clear(bool autoDelete =false)

Public Signals

  Name
void defaultAlignmentChanged()

Public Functions

  Name
  QskGridBox(QQuickItem * parent =nullptr)
  ~QskGridBox() override
Q_INVOKABLE int addItem(QQuickItem * item, int row, int column, int rowSpan, int columnSpan)
Q_INVOKABLE int addItem(QQuickItem * item, int row, int column)
int addItem(QQuickItem * item, int row, int column, Qt::Alignment alignment)
int addItem(QQuickItem * item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment)
Q_INVOKABLE int addSpacer(const QSizeF & spacing, int row, int column, int rowSpan =1, int columnSpan =1)
int addColumnSpacer(qreal spacing, int column)
int addRowSpacer(qreal spacing, int row)
void removeItem(const QQuickItem * item)
void removeAt(int index)
Q_INVOKABLE int rowCount() const
Q_INVOKABLE int columnCount() const
int elementCount() const
QQuickItem * itemAtIndex(int index) const
int indexOf(const QQuickItem * item) const
bool isEmpty() const
Q_INVOKABLE QQuickItem * itemAt(int row, int column) const
Q_INVOKABLE int indexAt(int row, int column) const
Q_INVOKABLE QRect gridOfIndex(int index) const
Q_INVOKABLE QRect effectiveGridOfIndex(int index) const
void setDefaultAlignment(Qt::Alignment alignment)
Qt::Alignment defaultAlignment() const
void setSpacing(Qt::Orientations orientations, qreal spacing)
void resetSpacing(Qt::Orientations orientations)
qreal spacing(Qt::Orientation orientation) const
void setSpacing(qreal spacing)
Q_INVOKABLE void setRowStretchFactor(int row, int stretch)
Q_INVOKABLE int rowStretchFactor(int row) const
Q_INVOKABLE void setColumnStretchFactor(int column, int stretch)
Q_INVOKABLE int columnStretchFactor(int column) const
Q_INVOKABLE void setColumnWidthHint(int column, Qt::SizeHint which, qreal width)
Q_INVOKABLE qreal columnWidthHint(int column, Qt::SizeHint which) const
Q_INVOKABLE void setRowHeightHint(int row, Qt::SizeHint which, qreal height)
Q_INVOKABLE qreal rowHeightHint(int row, Qt::SizeHint which) const
Q_INVOKABLE void setRowFixedHeight(int row, qreal height)
Q_INVOKABLE void setColumnFixedWidth(int column, qreal width)
void dump() const

Protected Functions

  Name
bool event(QEvent * event) override
void geometryChangeEvent(QskGeometryChangeEvent * event) override
void itemChange(ItemChange change, const ItemChangeData & value) override
void updateLayout() override
QSizeF layoutSizeHint(Qt::SizeHint which, const QSizeF & constraint) const override

Public Properties

  Name
Qt::Alignment defaultAlignment
bool empty
int elementCount

Public Slots Documentation

slot invalidate

void invalidate()

slot clear

void clear(
    bool autoDelete =false
)

Public Signals Documentation

signal defaultAlignmentChanged

void defaultAlignmentChanged()

Public Functions Documentation

function QskGridBox

explicit QskGridBox(
    QQuickItem * parent =nullptr
)

function ~QskGridBox

~QskGridBox() override

function addItem

Q_INVOKABLE int addItem(
    QQuickItem * item,
    int row,
    int column,
    int rowSpan,
    int columnSpan
)

function addItem

inline Q_INVOKABLE int addItem(
    QQuickItem * item,
    int row,
    int column
)

function addItem

int addItem(
    QQuickItem * item,
    int row,
    int column,
    Qt::Alignment alignment
)

function addItem

int addItem(
    QQuickItem * item,
    int row,
    int column,
    int rowSpan,
    int columnSpan,
    Qt::Alignment alignment
)

function addSpacer

Q_INVOKABLE int addSpacer(
    const QSizeF & spacing,
    int row,
    int column,
    int rowSpan =1,
    int columnSpan =1
)

function addColumnSpacer

int addColumnSpacer(
    qreal spacing,
    int column
)

function addRowSpacer

int addRowSpacer(
    qreal spacing,
    int row
)

function removeItem

void removeItem(
    const QQuickItem * item
)

function removeAt

void removeAt(
    int index
)

function rowCount

Q_INVOKABLE int rowCount() const

function columnCount

Q_INVOKABLE int columnCount() const

function elementCount

int elementCount() const

function itemAtIndex

QQuickItem * itemAtIndex(
    int index
) const

function indexOf

int indexOf(
    const QQuickItem * item
) const

function isEmpty

inline bool isEmpty() const

function itemAt

Q_INVOKABLE QQuickItem * itemAt(
    int row,
    int column
) const

function indexAt

Q_INVOKABLE int indexAt(
    int row,
    int column
) const

function gridOfIndex

Q_INVOKABLE QRect gridOfIndex(
    int index
) const

function effectiveGridOfIndex

Q_INVOKABLE QRect effectiveGridOfIndex(
    int index
) const

function setDefaultAlignment

void setDefaultAlignment(
    Qt::Alignment alignment
)

function defaultAlignment

Qt::Alignment defaultAlignment() const

function setSpacing

void setSpacing(
    Qt::Orientations orientations,
    qreal spacing
)

function resetSpacing

void resetSpacing(
    Qt::Orientations orientations
)

function spacing

qreal spacing(
    Qt::Orientation orientation
) const

function setSpacing

inline void setSpacing(
    qreal spacing
)

function setRowStretchFactor

Q_INVOKABLE void setRowStretchFactor(
    int row,
    int stretch
)

function rowStretchFactor

Q_INVOKABLE int rowStretchFactor(
    int row
) const

function setColumnStretchFactor

Q_INVOKABLE void setColumnStretchFactor(
    int column,
    int stretch
)

function columnStretchFactor

Q_INVOKABLE int columnStretchFactor(
    int column
) const

function setColumnWidthHint

Q_INVOKABLE void setColumnWidthHint(
    int column,
    Qt::SizeHint which,
    qreal width
)

function columnWidthHint

Q_INVOKABLE qreal columnWidthHint(
    int column,
    Qt::SizeHint which
) const

function setRowHeightHint

Q_INVOKABLE void setRowHeightHint(
    int row,
    Qt::SizeHint which,
    qreal height
)

function rowHeightHint

Q_INVOKABLE qreal rowHeightHint(
    int row,
    Qt::SizeHint which
) const

function setRowFixedHeight

Q_INVOKABLE void setRowFixedHeight(
    int row,
    qreal height
)

function setColumnFixedWidth

Q_INVOKABLE void setColumnFixedWidth(
    int column,
    qreal width
)

function dump

void dump() const

Protected Functions Documentation

function event

bool event(
    QEvent * event
) override

function geometryChangeEvent

void geometryChangeEvent(
    QskGeometryChangeEvent * event
) override

function itemChange

void itemChange(
    ItemChange change,
    const ItemChangeData & value
) override

function updateLayout

void updateLayout() override

function layoutSizeHint

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

Public Property Documentation

property defaultAlignment

Qt::Alignment defaultAlignment;

property empty

bool empty;

property elementCount

int elementCount;

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