#[repr(C)]pub struct QModelIndex { /* private fields */ }
Expand description
The QModelIndex class is used to locate data in a data model.
Implementations§
Source§impl QModelIndex
impl QModelIndex
Source§impl QModelIndex
impl QModelIndex
Source§impl QModelIndex
impl QModelIndex
Sourcepub fn parent(&self) -> QModelIndex
pub fn parent(&self) -> QModelIndex
Returns the parent of the model index, or QModelIndex() if it has no parent.
Source§impl QModelIndex
impl QModelIndex
Sourcepub fn sibling(&self, row: i32, column: i32) -> QModelIndex
pub fn sibling(&self, row: i32, column: i32) -> QModelIndex
Returns the sibling at row and column. If there is no sibling at this position, an invalid QModelIndex is returned.
Source§impl QModelIndex
impl QModelIndex
Sourcepub fn sibling_at_column(&self, column: i32) -> QModelIndex
pub fn sibling_at_column(&self, column: i32) -> QModelIndex
Returns the sibling at column for the current row. If there is no sibling at this position, an invalid QModelIndex is returned.
Source§impl QModelIndex
impl QModelIndex
Sourcepub fn sibling_at_row(&self, row: i32) -> QModelIndex
pub fn sibling_at_row(&self, row: i32) -> QModelIndex
Returns the sibling at row for the current column. If there is no sibling at this position, an invalid QModelIndex is returned.
Source§impl QModelIndex
impl QModelIndex
Sourcepub fn internal_pointer_mut(&self) -> *mut c_void
pub fn internal_pointer_mut(&self) -> *mut c_void
Returns a *mut c_void
pointer used by the model to associate the index with the internal data structure.
Source§impl QModelIndex
impl QModelIndex
Sourcepub fn internal_id(&self) -> usize
pub fn internal_id(&self) -> usize
Returns a usize
used by the model to associate the index with the internal data structure.
Trait Implementations§
Source§impl Clone for QModelIndex
impl Clone for QModelIndex
Source§fn clone(&self) -> QModelIndex
fn clone(&self) -> QModelIndex
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for QModelIndex
impl Debug for QModelIndex
Source§impl Default for QModelIndex
impl Default for QModelIndex
Source§impl Display for QModelIndex
impl Display for QModelIndex
Source§impl ExternType for QModelIndex
impl ExternType for QModelIndex
Source§impl From<&QModelIndex> for QPersistentModelIndex
impl From<&QModelIndex> for QPersistentModelIndex
Source§fn from(index: &QModelIndex) -> Self
fn from(index: &QModelIndex) -> Self
Creates a new QPersistentModelIndex that is a copy of the model index.