Trait qmetaobject::tablemodel::QAbstractTableModel [−][src]
pub trait QAbstractTableModel: QObject {
Show 18 methods
fn row_count(&self) -> i32;
fn column_count(&self) -> i32;
fn data(&self, index: QModelIndex, role: i32) -> QVariant;
fn get_object_description() -> &'static QObjectDescriptor
where
Self: Sized,
{ ... }
fn set_data(
&mut self,
_index: QModelIndex,
_value: &QVariant,
_role: i32
) -> bool { ... }
fn role_names(&self) -> HashMap<i32, QByteArray> { ... }
fn begin_insert_rows(&mut self, first: i32, last: i32) { ... }
fn end_insert_rows(&mut self) { ... }
fn begin_insert_columns(&mut self, first: i32, last: i32) { ... }
fn end_insert_columns(&mut self) { ... }
fn begin_remove_rows(&mut self, first: i32, last: i32) { ... }
fn end_remove_rows(&mut self) { ... }
fn begin_remove_columns(&mut self, first: i32, last: i32) { ... }
fn end_remove_columns(&mut self) { ... }
fn begin_reset_model(&mut self) { ... }
fn end_reset_model(&mut self) { ... }
fn data_changed(&mut self, top_left: QModelIndex, bottom_right: QModelIndex) { ... }
fn index(&self, row: i32, col: i32) -> QModelIndex { ... }
}
Required methods
fn column_count(&self) -> i32
fn column_count(&self) -> i32
Refer to the Qt documentation of QAbstractTableModel::columnCount
fn data(&self, index: QModelIndex, role: i32) -> QVariant
fn data(&self, index: QModelIndex, role: i32) -> QVariant
Refer to the Qt documentation of QAbstractTableModel::data
Provided methods
fn get_object_description() -> &'static QObjectDescriptor where
Self: Sized,
Refer to the Qt documentation of QAbstractTableModel::setData
fn role_names(&self) -> HashMap<i32, QByteArray>
fn role_names(&self) -> HashMap<i32, QByteArray>
Refer to the Qt documentation of QAbstractTableModel::roleNames
fn begin_insert_rows(&mut self, first: i32, last: i32)
fn begin_insert_rows(&mut self, first: i32, last: i32)
Refer to the Qt documentation of QAbstractItemModel::beginInsertRows
fn end_insert_rows(&mut self)
fn end_insert_rows(&mut self)
Refer to the Qt documentation of QAbstractItemModel::endInsertRows
fn begin_insert_columns(&mut self, first: i32, last: i32)
fn begin_insert_columns(&mut self, first: i32, last: i32)
Refer to the Qt documentation of QAbstractItemModel::beginInsertColumns
fn end_insert_columns(&mut self)
fn end_insert_columns(&mut self)
Refer to the Qt documentation of QAbstractItemModel::endInsertColumns
fn begin_remove_rows(&mut self, first: i32, last: i32)
fn begin_remove_rows(&mut self, first: i32, last: i32)
Refer to the Qt documentation of QAbstractItemModel::beginRemoveRows
fn end_remove_rows(&mut self)
fn end_remove_rows(&mut self)
Refer to the Qt documentation of QAbstractItemModel::endRemoveRows
fn begin_remove_columns(&mut self, first: i32, last: i32)
fn begin_remove_columns(&mut self, first: i32, last: i32)
Refer to the Qt documentation of QAbstractItemModel::beginRemoveColumns
fn end_remove_columns(&mut self)
fn end_remove_columns(&mut self)
Refer to the Qt documentation of QAbstractItemModel::endRemoveColumns
fn begin_reset_model(&mut self)
fn begin_reset_model(&mut self)
Refer to the Qt documentation of QAbstractItemModel::beginResetModel
fn end_reset_model(&mut self)
fn end_reset_model(&mut self)
Refer to the Qt documentation of QAbstractItemModel::endResetModel
fn data_changed(&mut self, top_left: QModelIndex, bottom_right: QModelIndex)
fn data_changed(&mut self, top_left: QModelIndex, bottom_right: QModelIndex)
Refer to the Qt documentation of QAbstractItemModel::dataChanged
fn index(&self, row: i32, col: i32) -> QModelIndex
fn index(&self, row: i32, col: i32) -> QModelIndex
Returns a QModelIndex for the given row and column