QTableWidgetSelectionRangeclass provides a way to interact with selection in a model without using model indexes and a selection model. 更多 …
def
bottomRow
()
def
columnCount
()
def
leftColumn
()
def
rightColumn
()
def
rowCount
()
def
topRow
()
QTableWidgetSelectionRangeclass 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.注意
If the item within the selection range is marked as not selectable, e.g.,
itemFlags() & Qt::ItemIsSelectable == 0then it will not appear in the selection range.另请参阅
QTableWidgetSelectionRange
¶
QTableWidgetSelectionRange(other)
QTableWidgetSelectionRange(top, left, bottom, right)
- param bottom
int- param top
int- param right
int- param other
- param left
int
Constructs an table selection range, i.e. a range whose
rowCount()
and
columnCount()
are 0.
Constructs a the table selection range by copying the given
other
table selection range.
Constructs the table selection range from the given
top
,
left
,
bottom
and
right
table rows and columns.
PySide2.QtWidgets.QTableWidgetSelectionRange.
bottomRow
(
)
¶
int
Returns the bottom row of the range.
PySide2.QtWidgets.QTableWidgetSelectionRange.
columnCount
(
)
¶
int
Returns the number of columns in the range.
这相当于
rightColumn()
-
leftColumn()
+ 1.
PySide2.QtWidgets.QTableWidgetSelectionRange.
leftColumn
(
)
¶
int
Returns the left column of the range.
PySide2.QtWidgets.QTableWidgetSelectionRange.
rightColumn
(
)
¶
int
Returns the right column of the range.
PySide2.QtWidgets.QTableWidgetSelectionRange.
rowCount
(
)
¶
int
Returns the number of rows in the range.
这相当于
bottomRow()
-
topRow()
+ 1.
PySide2.QtWidgets.QTableWidgetSelectionRange.
topRow
(
)
¶
int
Returns the top row of the range.