API reference - Class QPersistentModelIndex

Notation used in Ruby API documentation

Description: Binding of QPersistentModelIndex

Public constructors

new QPersistentModelIndexnewConstructor QPersistentModelIndex::QPersistentModelIndex()
new QPersistentModelIndexnew(const QModelIndex index)Constructor QPersistentModelIndex::QPersistentModelIndex(const QModelIndex &index)
new QPersistentModelIndexnew(const QPersistentModelIndex other)Constructor QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other)

Public methods

[const]bool!=(const QPersistentModelIndex other)Method bool QPersistentModelIndex::operator!=(const QPersistentModelIndex &other)
[const]bool!=(const QModelIndex other)Method bool QPersistentModelIndex::operator!=(const QModelIndex &other)
[const]bool<(const QPersistentModelIndex other)Method bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other)
[const]bool==(const QPersistentModelIndex other)Method bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other)
[const]bool==(const QModelIndex other)Method bool QPersistentModelIndex::operator==(const QModelIndex &other)
QPersistentModelIndexassign(const QPersistentModelIndex other)Method QPersistentModelIndex &QPersistentModelIndex::operator=(const QPersistentModelIndex &other)
QPersistentModelIndexassign(const QModelIndex other)Method QPersistentModelIndex &QPersistentModelIndex::operator=(const QModelIndex &other)
[const]voidassign(const QPersistentModelIndex other)Assign the contents of another object to self
[const]QModelIndexcastToQModelIndexBinding for "operator const QModelIndex &".
[const]QModelIndexchild(int row,
int column)
Method QModelIndex QPersistentModelIndex::child(int row, int column)
[const]intcolumnMethod int QPersistentModelIndex::column()
voidcreateEnsures the C++ object is created
[const]QVariantdata(int role = Qt::DisplayRole)Method QVariant QPersistentModelIndex::data(int role)
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QPersistentModelIndexdupCreates a copy of self
[const]Qt_QFlags_ItemFlagflagsMethod QFlags<Qt::ItemFlag> QPersistentModelIndex::flags()
[const]long longinternalIdMethod qint64 QPersistentModelIndex::internalId()
[const]void *internalPointerMethod void *QPersistentModelIndex::internalPointer()
[const]boolisValidMethod bool QPersistentModelIndex::isValid()
[const]boolisValid?Method bool QPersistentModelIndex::isValid()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]const QAbstractItemModel ptrmodelMethod const QAbstractItemModel *QPersistentModelIndex::model()
[const]QModelIndexparentMethod QModelIndex QPersistentModelIndex::parent()
[const]introwMethod int QPersistentModelIndex::row()
[const]QModelIndexsibling(int row,
int column)
Method QModelIndex QPersistentModelIndex::sibling(int row, int column)

Detailed description

[const] bool !=(const QPersistentModelIndex other)

Description: Method bool QPersistentModelIndex::operator!=(const QPersistentModelIndex &other)

[const] bool !=(const QModelIndex other)

Description: Method bool QPersistentModelIndex::operator!=(const QModelIndex &other)

[const] bool <(const QPersistentModelIndex other)

Description: Method bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other)

[const] bool ==(const QPersistentModelIndex other)

Description: Method bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other)

[const] bool ==(const QModelIndex other)

Description: Method bool QPersistentModelIndex::operator==(const QModelIndex &other)

QPersistentModelIndex assign(const QPersistentModelIndex other)

Description: Method QPersistentModelIndex &QPersistentModelIndex::operator=(const QPersistentModelIndex &other)

QPersistentModelIndex assign(const QModelIndex other)

Description: Method QPersistentModelIndex &QPersistentModelIndex::operator=(const QModelIndex &other)

[const] void assign(const QPersistentModelIndex other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

[const] QModelIndex castToQModelIndex

Description: Binding for "operator const QModelIndex &".

[const] QModelIndex child(int row,int column)

Description: Method QModelIndex QPersistentModelIndex::child(int row, int column)

[const] int column

Description: Method int QPersistentModelIndex::column()

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

[const] QVariant data(int role = Qt::DisplayRole)

Description: Method QVariant QPersistentModelIndex::data(int role)

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QPersistentModelIndex dup

Description: Creates a copy of self

[const] Qt_QFlags_ItemFlag flags

Description: Method QFlags<Qt::ItemFlag> QPersistentModelIndex::flags()

[const] long long internalId

Description: Method qint64 QPersistentModelIndex::internalId()

[const] void * internalPointer

Description: Method void *QPersistentModelIndex::internalPointer()

[const] bool isValid

Description: Method bool QPersistentModelIndex::isValid()

[const] bool isValid?

Description: Method bool QPersistentModelIndex::isValid()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[const] const QAbstractItemModel ptr model

Description: Method const QAbstractItemModel *QPersistentModelIndex::model()

[static] new QPersistentModelIndex new

Description: Constructor QPersistentModelIndex::QPersistentModelIndex()

This method creates an object of class QPersistentModelIndex.

[static] new QPersistentModelIndex new(const QModelIndex index)

Description: Constructor QPersistentModelIndex::QPersistentModelIndex(const QModelIndex &index)

This method creates an object of class QPersistentModelIndex.

[static] new QPersistentModelIndex new(const QPersistentModelIndex other)

Description: Constructor QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other)

This method creates an object of class QPersistentModelIndex.

[const] QModelIndex parent

Description: Method QModelIndex QPersistentModelIndex::parent()

[const] int row

Description: Method int QPersistentModelIndex::row()

[const] QModelIndex sibling(int row,int column)

Description: Method QModelIndex QPersistentModelIndex::sibling(int row, int column)