pub trait QAbstractItemModelBase: QObjectHolder<ProxyRust = QAbstractItemModelProxyRust> {
Show 20 methods
// Provided methods
fn role_names(&self) -> QHash<i32, QByteArray> { ... }
fn set_data(
&mut self,
index: &QModelIndex,
value: &QVariant,
role: i32,
) -> bool { ... }
fn remove_rows(
&mut self,
first: i32,
count: i32,
parent: &QModelIndex,
) -> bool { ... }
fn sibling(&self, row: i32, column: i32, idx: &QModelIndex) -> QModelIndex { ... }
fn data_changed(
&mut self,
top_left: &QModelIndex,
bottom_right: &QModelIndex,
) { ... }
fn begin_insert_columns(
&mut self,
parent: &QModelIndex,
first: i32,
last: i32,
) { ... }
fn end_insert_columns(&mut self) { ... }
fn begin_insert_rows(&mut self, parent: &QModelIndex, first: i32, last: i32) { ... }
fn end_insert_rows(&mut self) { ... }
fn begin_move_columns(
&mut self,
source_parent: &QModelIndex,
source_first: i32,
source_last: i32,
destination_parent: &QModelIndex,
destination_child: i32,
) { ... }
fn end_move_columns(&mut self) { ... }
fn begin_move_rows(
&mut self,
source_parent: &QModelIndex,
source_first: i32,
source_last: i32,
destination_parent: &QModelIndex,
destination_child: i32,
) { ... }
fn end_move_rows(&mut self) { ... }
fn begin_remove_columns(
&mut self,
parent: &QModelIndex,
first: i32,
last: i32,
) { ... }
fn end_remove_columns(&mut self) { ... }
fn begin_remove_rows(&mut self, parent: &QModelIndex, first: i32, last: i32) { ... }
fn end_remove_rows(&mut self) { ... }
fn begin_reset_model(&mut self) { ... }
fn end_reset_model(&mut self) { ... }
fn create_index(&self, row: i32, column: i32, ptr: usize) -> QModelIndex { ... }
}Provided Methods§
fn role_names(&self) -> QHash<i32, QByteArray>
fn set_data(&mut self, index: &QModelIndex, value: &QVariant, role: i32) -> bool
fn remove_rows(&mut self, first: i32, count: i32, parent: &QModelIndex) -> bool
fn sibling(&self, row: i32, column: i32, idx: &QModelIndex) -> QModelIndex
fn data_changed(&mut self, top_left: &QModelIndex, bottom_right: &QModelIndex)
fn begin_insert_columns(&mut self, parent: &QModelIndex, first: i32, last: i32)
fn end_insert_columns(&mut self)
fn begin_insert_rows(&mut self, parent: &QModelIndex, first: i32, last: i32)
fn end_insert_rows(&mut self)
fn begin_move_columns( &mut self, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, )
fn end_move_columns(&mut self)
fn begin_move_rows( &mut self, source_parent: &QModelIndex, source_first: i32, source_last: i32, destination_parent: &QModelIndex, destination_child: i32, )
fn end_move_rows(&mut self)
fn begin_remove_columns(&mut self, parent: &QModelIndex, first: i32, last: i32)
fn end_remove_columns(&mut self)
fn begin_remove_rows(&mut self, parent: &QModelIndex, first: i32, last: i32)
fn end_remove_rows(&mut self)
fn begin_reset_model(&mut self)
fn end_reset_model(&mut self)
fn create_index(&self, row: i32, column: i32, ptr: usize) -> QModelIndex
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.