ListModel.getNItems
uint getNItems()Gets the number of items in list.
Depending on the model implementation, calling this function may be less efficient than iterating the list with increasing values for position until gio.list_model.ListModel.getItem returns null.
Returns
the number of items in list.