ListModel
- Simple container for ListElements
- count 属性
- useful methods: append (jsonobject dict), insert(int index, jsonobject dict), clear(), object get(int index)
ComboBox
- provides a list of options
- 使用 data model 数据模型 填充
- useful methods: find(string text), selectAll(), textAt(int index)
- useful properties: count, currentIndex, currentText, model
Repeater
- 用于创建 大量相似的 items
- a repeater 拥有 a model and a delegate
- methods: itemAt(index)
- 属性: count, delegate, model
Grid
- position child items in grid 网格
- 使child items在grid中, 按 从左到右, 从上往下 排列
- 每一个child item 在其对应的网格中, 在top-left (0, 0)位置
Keys
- Keys键盘 可以用 onPressed 和 onReleased signal properties来处理
Loader
- 动态load QML components
- 通过 source属性 load QML file 或者 通过sourceComponent 属性 load Component object
- 如果 source / sourceComponent change, 以前已经初始化的item 会被 destroy
loader用于延迟 component的创建.