AbstractTable QML Type
Table views with configurable columns, headers, sorting, and selection.. More...
- Import Statement: import org.kde.kirigamiaddons.tableview
- Inherits: Flickable
Detailed Description
Property Documentation
actions : alias
A link to a list of context menu items.
See also Menu
[default: true] alternatingRows : bool
This property controls whether the background color of the rows should alternate.
[read-only] columnCount : int
This property holds the number of columns in the component include invisibles.
[default: true] compact : bool
If this property is enabled, the table will be displayed in a compact form.
headerComponents : list<AbstractHeaderComponent>
The default property that stores the components for forming the columns of this table.
See also AbstractHeaderComponent
model : var
This property holds the model that provides data for the table.
The model provides the set of data that is used to create the items in the view.
[read-only] rowCount : int
This property holds the number of rows in the view.
[default: TableView.SelectRows] selectionBehavior : int
This property holds whether the user can select cells, rows or columns.
See also TableView.selectionBehavior
[default: TableView.ExtendedSelection] selectionMode : int
The selection mode.
| Constant | Description |
|---|---|
| TableView.SelectCells | Whether the user can select one cell at a time, or multiple cells. |
| TableView.SelectRows | Whether the user can select one row at a time, or multiple rows. |
| TableView.SelectColumns | Whether the user can select one column at a time, or multiple columns. |
See also TableView.selectionMode
selectionModel : ItemSelectionModel
This property can be set to control which delegate items should be shown as selected, and which item should be shown as current.
Using the selectionType and selectionMode properties you can adjust the selection behavior.
See also selectionType, selectionMode
sortOrder : Qt.SortOrder
The property is responsible for the direction in which sorting will be performed.
Note: You must implement sorting yourself for this property to be valid.
See also sortRole, Qt.SortOrder
sortRole : int
This property specifies based on which role the table will be sorted.
Note: You must implement sorting yourself for this property to be valid.
See also sortOrder
Signal Documentation
columnClicked(int column, var headerComponent)
Note: The corresponding handler is
onColumnClicked.
columnDoubleClicked(int column, var headerComponent)
Note: The corresponding handler is
onColumnDoubleClicked.
rowClicked(int row)
Note: The corresponding handler is
onRowClicked.
rowDoubleClicked(int row)
Note: The corresponding handler is
onRowDoubleClicked.