AbstractTable QML Type
Import Statement: | import org.kde.kirigamiaddons.tableview |
Inherits: |
Properties
- actions : alias
- alternatingRows : bool
- columnCount : int
- compact : bool
- headerComponents : list<AbstractHeaderComponent>
- model : var
- rowCount : int
- selectionBehavior : int
- selectionMode : int
- selectionModel : ItemSelectionModel
- sortOrder : Qt.SortOrder
- sortRole : int
Signals
- columnClicked(int column, var headerComponent)
- columnDoubleClicked(int column, var headerComponent)
- rowClicked(int row)
- rowDoubleClicked(int row)
Detailed Description
Property Documentation
actions : alias |
A link to a list of context menu items.
See also Menu.
alternatingRows : bool |
This property controls whether the background color of the rows should alternate.
columnCount : int |
This property holds the number of columns in the component include invisibles.
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.
rowCount : int |
This property holds the number of rows in the view.
selectionBehavior : int |
This property holds whether the user can select cells, rows or columns.
See also TableView.selectionBehavior.
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 and 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 and 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
.