AbstractTable QML Type

Import Statement: import org.kde.kirigamiaddons.tableview
Inherits:

Flickable

Properties

Signals

Detailed Description

Property Documentation

actions : alias

A link to a list of context menu items.

See also Menu.


alternatingRows : bool [default: true]

This property controls whether the background color of the rows should alternate.


columnCount : int [read-only]

This property holds the number of columns in the component include invisibles.


compact : bool [default: true]

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 [read-only]

This property holds the number of rows in the view.


selectionBehavior : int [default: TableView.SelectRows]

This property holds whether the user can select cells, rows or columns.

See also TableView.selectionBehavior.


selectionMode : int [default: TableView.ExtendedSelection]

The selection mode.

ConstantDescription
TableView.SelectCellsWhether the user can select one cell at a time, or multiple cells.
TableView.SelectRowsWhether the user can select one row at a time, or multiple rows.
TableView.SelectColumnsWhether 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.