QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
This can be used like a regular QTableWidgetItem with the difference that a specific role can be set to sort. More...
#include <qgstablewidgetitem.h>
Public Member Functions | |
QgsTableWidgetItem ()=default | |
Constructor for QgsTableWidgetItem. | |
QgsTableWidgetItem (const QString &text) | |
Creates a new table widget item with the specified text. | |
bool | operator< (const QTableWidgetItem &other) const override |
void | setSortRole (int role) |
Set the role by which the items should be sorted. | |
int | sortRole () const |
Gets the role by which the items should be sorted. | |
This can be used like a regular QTableWidgetItem with the difference that a specific role can be set to sort.
Definition at line 27 of file qgstablewidgetitem.h.
|
default |
Constructor for QgsTableWidgetItem.
QgsTableWidgetItem::QgsTableWidgetItem | ( | const QString & | text | ) |
Creates a new table widget item with the specified text.
Definition at line 19 of file qgstablewidgetitem.cpp.
|
override |
Definition at line 34 of file qgstablewidgetitem.cpp.
void QgsTableWidgetItem::setSortRole | ( | int | role | ) |
Set the role by which the items should be sorted.
By default this will be set to Qt::DisplayRole
Definition at line 24 of file qgstablewidgetitem.cpp.
int QgsTableWidgetItem::sortRole | ( | ) | const |
Gets the role by which the items should be sorted.
By default this will be Qt::DisplayRole
Definition at line 29 of file qgstablewidgetitem.cpp.