The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model. More...
Header: | #include <QTableWidgetSelectionRange> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
QTableWidgetSelectionRange(int top, int left, int bottom, int right) | |
QTableWidgetSelectionRange() | |
int | bottomRow() const |
int | columnCount() const |
int | leftColumn() const |
int | rightColumn() const |
int | rowCount() const |
int | topRow() const |
bool | operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) |
bool | operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) |
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 QTableWidget.
Constructs the table selection range from the given top, left, bottom and right table rows and columns.
See also topRow(), leftColumn(), bottomRow(), and rightColumn().
Constructs an empty table selection range, i.e. a range whose rowCount() and columnCount() are 0.
See also topRow(), leftColumn(), bottomRow(), and rightColumn().
Returns the bottom row of the range.
See also topRow(), rightColumn(), and rowCount().
Returns the number of columns in the range.
This is equivalent to rightColumn() - leftColumn() + 1.
See also rowCount(), leftColumn(), and rightColumn().
Returns the left column of the range.
See also rightColumn(), topRow(), and columnCount().
Returns the right column of the range.
See also leftColumn(), bottomRow(), and columnCount().
Returns the number of rows in the range.
This is equivalent to bottomRow() - topRow() + 1.
See also columnCount(), topRow(), and bottomRow().
Returns the top row of the range.
See also bottomRow(), leftColumn(), and rowCount().
[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.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: