KLayout Manual: Main Index » Class Index » API reference - Class QModelIndex

API reference - Class QModelIndex

Notation used in Ruby API documentation

Description: Binding of QModelIndex

Public constructors

new QModelIndexnewConstructor QModelIndex::QModelIndex()
new QModelIndexnew(const QModelIndex other)Constructor QModelIndex::QModelIndex(const QModelIndex &other)

Public methods

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

Detailed description

[const] bool !=(const QModelIndex other)

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

[const] bool <(const QModelIndex other)

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

[const] bool ==(const QModelIndex other)

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

[const] void assign(const QModelIndex 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 child(int row,int column)

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

[const] int column

Description: Method int QModelIndex::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

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

[const] QVariant data(int role)

Description: Method QVariant QModelIndex::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] QModelIndex dup

Description: Creates a copy of self

[const] int flags

Description: Method QFlags<enum Qt::ItemFlag> QModelIndex::flags()

[const] long long internalId

Description: Method qint64 QModelIndex::internalId()

[const] void * internalPointer

Description: Method void * QModelIndex::internalPointer()

[const] bool isValid

Description: Method bool QModelIndex::isValid()

[const] bool isValid?

Description: Method bool QModelIndex::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 * QModelIndex::model()

[static] new QModelIndex new

Description: Constructor QModelIndex::QModelIndex()

This method creates an object of class QModelIndex.

[static] new QModelIndex new(const QModelIndex other)

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

This method creates an object of class QModelIndex.

[const] QModelIndex parent

Description: Method QModelIndex QModelIndex::parent()

[const] int row

Description: Method int QModelIndex::row()

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

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