- Qt 6.10
- Qt Widgets
- C++ Classes
- QTableWidgetSelectionRange
- Qt 6.10.2 Reference Documentation

# QTableWidgetSelectionRange Class

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`

## 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 QTableWidget.