ModelCount QML Type

Attached property exposing model's row count. More...

Import Statement: import QtModelsToolkit .

Attached Properties

Detailed Description

This attached type provides row count in a dynamic way. In opposition to rowCount() it can be safely used in binding expression because change will be properly notified resulting in expression re-evaluation.

Attached Property Documentation

ModelCount.count : int

This attached property provides row count for arbitrary QAbstractItemModel model.


ModelCount.empty : int

This attached property provides flag indication if given arbitrary QAbstractItemModel model is empty.