Struct cxx_qt_lib::QModelIndex
source · #[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.
Trait Implementations§
source§impl Clone for QModelIndex
impl Clone for QModelIndex
source§fn clone(&self) -> QModelIndex
fn clone(&self) -> QModelIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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.