Skip to content

PythonQt.QtGui.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
bottomRight function (self) -> Any X.bottomRight() -> PythonQt.QtCore.QPersistentModelIndex
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
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
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
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
intersects function (self, other: Any) -> bool X.intersects(other) -> bool
isEmpty function (self) -> bool X.isEmpty() -> bool
isValid function (self) -> bool X.isValid() -> bool
left function (self) -> int X.left() -> int
model function (self) -> Any X.model() -> PythonQt.QtCore.QAbstractItemModel
operator_assign function (self, other: Any) -> Any X.operator_assign(other) -> PythonQt.QtGui.QItemSelectionRange
parent function (self) -> Any X.parent() -> PythonQt.QtCore.QModelIndex
right function (self) -> int X.right() -> int
swap function (self, other: Any) -> None Swaps this selection range's contents with other.
top function (self) -> int X.top() -> int
topLeft function (self) -> Any X.topLeft() -> PythonQt.QtCore.QPersistentModelIndex
width function (self) -> int X.width() -> int