QTableWidgetSelectionRange Class▲
-
Header: QTableWidgetSelectionRange
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
-
qmake: QT += widgets
-
Group: QTableWidgetSelectionRange is part of model-view
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.
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▲
See also QTableWidget
Member Function Documentation▲
QTableWidgetSelectionRange::QTableWidgetSelectionRange()▲
Constructs an empty table selection range, i.e. a range whose rowCount() and columnCount() are 0.
See Also▲
See also topRow(), leftColumn(), bottomRow(), rightColumn()
QTableWidgetSelectionRange::QTableWidgetSelectionRange(int top, int left, int bottom, int right)▲
Constructs the table selection range from the given top, left, bottom and right table rows and columns.
See Also▲
See also topRow(), leftColumn(), bottomRow(), rightColumn()
int QTableWidgetSelectionRange::bottomRow() const▲
int QTableWidgetSelectionRange::columnCount() const▲
Returns the number of columns in the range.
This is equivalent to rightColumn() - leftColumn() + 1.
See Also▲
See also rowCount(), leftColumn(), rightColumn()
int QTableWidgetSelectionRange::leftColumn() const▲
int QTableWidgetSelectionRange::rightColumn() const▲
int QTableWidgetSelectionRange::rowCount() const▲
Returns the number of rows in the range.
This is equivalent to bottomRow() - topRow() + 1.
See Also▲
See also columnCount(), topRow(), bottomRow()
int QTableWidgetSelectionRange::topRow() const▲
Related Non-Members▲
[since 6.3] bool operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)▲
Returns true if lhs and rhs are not equal, otherwise returns false.
This function was introduced in Qt 6.3.
[since 6.3] bool operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)▲
Returns true if lhs and rhs are equal, otherwise returns false.
This function was introduced in Qt 6.3.