QgsTableWidgetItem class
This can be used like a regular QTableWidgetItem with the difference that a specific role can be set to sort.
Contents
Constructors, destructors, conversion operators
- QgsTableWidgetItem() defaulted
- Constructor for QgsTableWidgetItem.
- QgsTableWidgetItem(const QString& text)
- Creates a new table widget item with the specified text.
Public functions
- void setSortRole(int role)
- Set the role by which the items should be sorted.
- auto sortRole() const -> int
- Gets the role by which the items should be sorted.
Function documentation
void QgsTableWidgetItem:: setSortRole(int role)
Set the role by which the items should be sorted.
By default this will be set to Qt::DisplayRole
int QgsTableWidgetItem:: sortRole() const
Gets the role by which the items should be sorted.
By default this will be Qt::DisplayRole