Struct qmetaobject::listmodel::SimpleListModel[][src]

pub struct SimpleListModel<T: SimpleListItem + 'static> { /* fields omitted */ }
Expand description

A simple QAbstractListModel which just wrap a vector of items.

Implementations

Returns an iterator over the items in the model

Trait Implementations

Returns the “default value” for a type. Read more

Creates a value from an iterator. Read more

Creates a value from an iterator. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Refer to the Qt documentation of QAbstractListModel::rowCount

Refer to the Qt documentation of QAbstractListModel::data

Refer to the Qt documentation of QAbstractListModel::roleNames

Required for the implementation detail of the QObject custom derive

Refer to the Qt documentation of QAbstractListModel::setData

Refer to the Qt documentation of QAbstractListModel::beginInsertRows

Refer to the Qt documentation of QAbstractListModel::endInsertRows

Refer to the Qt documentation of QAbstractListModel::beginRemoveRows

Refer to the Qt documentation of QAbstractListModel::endRemoveRows

Refer to the Qt documentation of QAbstractListModel::beginResetModel

Refer to the Qt documentation of QAbstractListModel::endResetModel

Refer to the Qt documentation of QAbstractListModel::dataChanged

Returns a QModelIndex for the given row (in the first column)

Returns a pointer to a meta object

Returns a pointer to a meta object

return a C++ pointer to the QObject* (can be null if not yet initialized)

Return a rust object belonging to a C++ object

Construct the C++ Object. Read more

Construct the C++ Object, suitable for callbacks to construct QML objects.

Return the size of the C++ object

Returns a QObjectDescriptor for this type

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.