TumblerColumn is a Column used with Tumbler More...
Inherits Item
This element was introduced in qt-components 4.7.
TumblerColumn represents a column in Tumbler. It is used with a Tumbler.
TumblerColumn { id: listEnglish items: ListModel { ListElement { value: "one" } ListElement { value: "two" } ListElement { value: "three" } } label: "ENGLISH" selectedIndex: 2 } TumblerColumn { id: listJapanese items: ListModel { ListElement { value: "ichi" } ListElement { value: "ni" } ListElement { value: "san" } } label: "JAPANESE" selectedIndex: 1 } Tumbler { columns: [ listEnglish, listJapanese ] }
enabled : bool |
Property default is true
The enabled state of the column.
items : ListModel |
The model containing the contents for the Tumbler to render. The Tumbler's delegate assumes that the model data is provided via the modelData role and interprets it as a text string.
Note: If the model contains only one named role, it is always provided via the modelData role. This also applies to a simple string list model. For more information, see QML Data Models documentation.
Note: If C++ model was specified, TumblerColumn will use display (in C++ this is Qt::DisplayRole) role.
label : string |
Property default is ""
The label of the column.
selectedIndex : int |
Property default is 0
The selected index of the column.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.