TableViewColumn
Used to define columns in a TableView. More...
Import Statement: | import QtQuick.Controls 1.1 |
Since: | Qt 5.1 |
Inherits: |
Properties
- delegate : Component
- elideMode : int
- horizontalAlignment : int
- movable : bool
- resizable : bool
- role : string
- title : string
- visible : bool
- width : int
Detailed Description
Property Documentation
delegate : Component |
The delegate of the column. This can be used to set the TableView::itemDelegate for a specific column.
In the delegate you have access to the following special properties:
- styleData.selected - if the item is currently selected
- styleData.value - the value or text for this item
- styleData.textColor - the default text color for an item
- styleData.row - the index of the row
- styleData.column - the index of the column
- styleData.elideMode - the elide mode of the column
- styleData.textAlignment - the horizontal text alignment of the column
elideMode : int |
The text elide mode of the column. Allowed values are:
- Text.ElideNone
- Text.ElideLeft
- Text.ElideMiddle
- Text.ElideRight - the default
See also Text::elide.
horizontalAlignment : int |
The horizontal text alignment of the column. Allowed values are:
- Text.AlignLeft - the default
- Text.AlignRight
- Text.AlignHCenter
- Text.AlignJustify
See also Text::horizontalAlignment.
movable : bool |
Determines if the column should be movable. The default value is true.
Note: A non-movable column may get indirectly moved if adjacent columns are movable.
This QML property was introduced in QtQuick.Controls 1.1.
resizable : bool |
Determines if the column should be resizable.
This QML property was introduced in QtQuick.Controls 1.1.
role : string |
The model role of the column.
title : string |
The title text of the column.
visible : bool |
The visible status of the column.
width : int |
The current width of the column The default value depends on platform. If only one column is defined, the width expands to the viewport.