Skip to content

PythonQt.Qt.QItemSelectionRange

QItemSelectionRange

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

A QItemSelectionRange contains information about a range of selected items in a model. A range of items is a contiguous array of model items, extending to cover a number of adjacent rows and columns with a common parent item; this can be visualized as a two-dimensional block of cells in a table. A selection range has a top(), left() a bottom(), right() and a parent().

The QItemSelectionRange class is one of the Model/View Classes and is part of Qt's model/view framework.

The model items contained in the selection range can be obtained using the indexes() function. Use QItemSelectionModel::selectedIndexes() to get a list of all selected items for a view.

You can determine whether a given model item lies within a particular range by using the contains() function. Ranges can also be compared using the overloaded operators for equality and inequality, and the intersects() function allows you to determine whether two ranges overlap.

Source: https://doc.qt.io/archives/qt-5.15/qitemselectionrange.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
bottom function (self) -> int X.bottom() -> int (shared captured text)
bottomRight function (self) -> Any X.bottomRight() -> PythonQt.QtCore.QPersistentModelIndex (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
contains function (self, row: Any, column: Any, parentIndex: Any) -> bool X.contains(row, column, parentIndex) -> bool (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
height function (self) -> int X.height() -> int (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
indexes function (self) -> tuple X.indexes() -> tuple (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
intersected function (self, other: Any) -> Any X.intersected(other) -> PythonQt.QtGui.QItemSelectionRange (shared captured text)
intersects function (self, other: Any) -> bool X.intersects(other) -> bool (shared captured text)
isEmpty function (self) -> bool X.isEmpty() -> bool (shared captured text)
isValid function (self) -> bool X.isValid() -> bool (shared captured text)
left function (self) -> int X.left() -> int (shared captured text)
model function (self) -> Any X.model() -> PythonQt.QtCore.QAbstractItemModel (shared captured text)
operator_assign function (self, other: Any) -> Any X.operator_assign(other) -> PythonQt.QtGui.QItemSelectionRange (shared captured text)
parent function (self) -> Any X.parent() -> PythonQt.QtCore.QModelIndex (shared captured text)
right function (self) -> int X.right() -> int (shared captured text)
swap function (self, other: Any) -> None Swaps this selection range's contents with other. (shared captured text)
top function (self) -> int X.top() -> int (shared captured text)
topLeft function (self) -> Any X.topLeft() -> PythonQt.QtCore.QPersistentModelIndex (shared captured text)
width function (self) -> int X.width() -> int (shared captured text)