PySide6.QtWidgets.QTableWidgetSelectionRange¶
- class QTableWidgetSelectionRange¶
The
QTableWidgetSelectionRange
class provides a way to interact with selection in a model without using model indexes and a selection model. More…Synopsis¶
Methods¶
def
__init__()
def
bottomRow()
def
columnCount()
def
leftColumn()
def
__ne__()
def
__eq__()
def
rightColumn()
def
rowCount()
def
topRow()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
The
QTableWidgetSelectionRange
class stores the top left and bottom right rows and columns of a selection range in a table. The selections in the table may consist of several selection ranges.Note
If the item within the selection range is marked as not selectable, e.g.,
itemFlags() & Qt::ItemIsSelectable == 0
then it will not appear in the selection range.See also
- __init__()¶
Constructs an empty table selection range, i.e. a range whose
rowCount()
andcolumnCount()
are 0.See also
- __init__(top, left, bottom, right)
- Parameters:
top – int
left – int
bottom – int
right – int
Constructs the table selection range from the given
top
,left
,bottom
andright
table rows and columns.See also
- bottomRow()¶
- Return type:
int
Returns the bottom row of the range.
See also
- columnCount()¶
- Return type:
int
Returns the number of columns in the range.
This is equivalent to
rightColumn()
-leftColumn()
+ 1.See also
- leftColumn()¶
- Return type:
int
Returns the left column of the range.
See also
- __ne__(rhs)¶
- Parameters:
- Return type:
bool
Returns true if
lhs
andrhs
are not equal, otherwise returns false.- __eq__(rhs)¶
- Parameters:
- Return type:
bool
Returns true if
lhs
andrhs
are equal, otherwise returns false.- rightColumn()¶
- Return type:
int
Returns the right column of the range.
See also
- rowCount()¶
- Return type:
int
Returns the number of rows in the range.
This is equivalent to
bottomRow()
-topRow()
+ 1.See also
- topRow()¶
- Return type:
int
Returns the top row of the range.
See also