summaryrefslogtreecommitdiff
path: root/src/controls/TableViewColumn.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/TableViewColumn.qml')
-rw-r--r--src/controls/TableViewColumn.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/controls/TableViewColumn.qml b/src/controls/TableViewColumn.qml
index 931d32da..75565e4b 100644
--- a/src/controls/TableViewColumn.qml
+++ b/src/controls/TableViewColumn.qml
@@ -46,6 +46,21 @@ import QtQuick 2.2
\since 5.1
\ingroup viewitems
\brief Used to define columns in a \l TableView.
+
+ \image tableview.png
+
+ TableViewColumn represents a column within a TableView. It provides
+ properties to decide how the data in that column is presented.
+
+ \qml
+ TableView {
+ TableViewColumn { role: "title"; title: "Title"; width: 100 }
+ TableViewColumn { role: "author"; title: "Author"; width: 200 }
+ model: libraryModel
+ }
+ \endqml
+
+ \sa TableView
*/
QtObject {