![]() |
Qt 6.x
The Qt SDK
|
The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model. More...
#include <qtablewidget.h>
Public Member Functions | |
QTableWidgetSelectionRange ()=default | |
Constructs an empty table selection range, i.e. | |
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. | |
int | topRow () const |
Returns the top row of the range. | |
int | bottomRow () const |
Returns the bottom row of the range. | |
int | leftColumn () const |
Returns the left column of the range. | |
int | rightColumn () const |
Returns the right column of the range. | |
int | rowCount () const |
int | columnCount () const |
Friends | |
bool | operator== (const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) noexcept |
bool | operator!= (const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) noexcept |
The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.
\inmodule QtWidgets
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.
{itemFlags() & Qt::ItemIsSelectable == 0} then it will not appear in the selection range.Definition at line 16 of file qtablewidget.h.
|
default |
Constructs an empty table selection range, i.e.
a range whose rowCount() and columnCount() are 0.
|
inline |
Constructs the table selection range from the given top, left, bottom and right table rows and columns.
Definition at line 20 of file qtablewidget.h.
|
inline |
Returns the bottom row of the range.
Definition at line 35 of file qtablewidget.h.
|
inline |
Returns the number of columns in the range.
This is equivalent to rightColumn() - leftColumn() + 1.
Definition at line 39 of file qtablewidget.h.
|
inline |
Returns the left column of the range.
Definition at line 36 of file qtablewidget.h.
|
inline |
Returns the right column of the range.
Definition at line 37 of file qtablewidget.h.
|
inline |
Returns the number of rows in the range.
This is equivalent to bottomRow() - topRow() + 1.
Definition at line 38 of file qtablewidget.h.
|
inline |
Returns the top row of the range.
Definition at line 34 of file qtablewidget.h.
|
friend |
Returns true if lhs and rhs are not equal, otherwise returns false.
Definition at line 30 of file qtablewidget.h.
|
friend |
Returns true if lhs and rhs are equal, otherwise returns false.
Definition at line 24 of file qtablewidget.h.