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.
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
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.
source§impl PartialEq for QModelIndex
impl PartialEq for QModelIndex
source§impl QVariantValue for QModelIndex
impl QVariantValue for QModelIndex
impl Eq for QModelIndex
Auto Trait Implementations§
impl Freeze for QModelIndex
impl RefUnwindSafe for QModelIndex
impl Send for QModelIndex
impl Sync for QModelIndex
impl Unpin for QModelIndex
impl UnwindSafe for QModelIndex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more