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>
qmake: QT += widgets

Public Functions

QTableWidgetSelectionRange()
QTableWidgetSelectionRange(int top, int left, int bottom, int right)
QTableWidgetSelectionRange(const QTableWidgetSelectionRange &other)
~QTableWidgetSelectionRange()
int bottomRow() const
int columnCount() const
int leftColumn() const
int rightColumn() const
int rowCount() const
int topRow() const

Detailed Description

The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.

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.

Member Function Documentation

QTableWidgetSelectionRange::QTableWidgetSelectionRange()

Constructs an table selection range, i.e. a range whose rowCount() and columnCount() are 0.

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 topRow(), leftColumn(), bottomRow(), and rightColumn().

QTableWidgetSelectionRange::QTableWidgetSelectionRange(const QTableWidgetSelectionRange &other)

Constructs a the table selection range by copying the given other table selection range.

QTableWidgetSelectionRange::~QTableWidgetSelectionRange()

Destroys the table selection range.

int QTableWidgetSelectionRange::bottomRow() const

int QTableWidgetSelectionRange::columnCount() const

int QTableWidgetSelectionRange::leftColumn() const

int QTableWidgetSelectionRange::rightColumn() const

int QTableWidgetSelectionRange::rowCount() const

int QTableWidgetSelectionRange::topRow() const