TableViewColumn QML Type | Qt Quick Controls 1 5.15.18 (original) (raw)

Used to define columns in a TableView or in a TreeView. More...

Import Statement: import QtQuick.Controls 1.4
Since: Qt 5.1
Inherits: QtObject

Properties

Methods

Detailed Description

TableViewColumn represents a column within a TableView or a TreeView. It provides properties to decide how the data in that column is presented.

See also TableView and TreeView.

Property Documentation

The delegate of the column. This can be used to set the itemDelagate of a TableView or TreeView for a specific column.

In the delegate you have access to the following special properties:

The text elide mode of the column. Allowed values are:

See also elide.

horizontalAlignment : int

The horizontal text alignment of the column. Allowed values are:

See also horizontalAlignment.

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 property was introduced in QtQuick.Controls 1.1.

Determines if the column should be resizable.

This property was introduced in QtQuick.Controls 1.1.

The model role of the column.

The title text of the column.

The visible status of the column.

The current width of the column. The default value depends on platform. If only one column is defined, the width expands to the viewport.

Method Documentation

Resizes the column so that the implicitWidth of the contents on every row will fit.

This method was introduced in QtQuick.Controls 1.2.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.