Struct qml::QListModel [] [src]

pub struct QListModel<'a> { /* fields omitted */ }

Allows providing a custom model to QML

Methods

impl<'a> QListModel<'a>
[src]

Rolenames are roles of provided data, that are mapped to corresponding roles in QML.

Returns an amount of rows in this model

Gets a QVariant associate

Appends a row to the model

Note that it clones all incoming qvariants as modifying them is not allowed.

Inserts a row into model

Note that it clones all incoming qvariants as modifying them is not allowed.

Remove a line from the model.

Sets a data for this QAbstractListModel

Changes a line in underlying data

Clear all the data from the model

Gets an immutable view of the data