Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
Properties | List of all members
ListPickSelector Class Reference

A pick selector used for selecting an item from a list. More...

Inherits AbstractPickSelector.

Properties

int currentIndex
 The current chosen index in the view.
Component delegate
 The delegate to be used by the view.
variant model
 The model to be used by the view.
string textRole
 The name of the role that provides the text to be displayed in the delegate.
- Properties inherited from AbstractPickSelector
string currentValueText
 This property should be set to the display text of the current selected value.
- Properties inherited from Dialog
list< QDeclarativeItem > children
 The visual children of the dialog.
list< object > data
 The children of the dialog.
bool showProgressIndicator
 Whether the progress indicator should be visible.
enumeration status
 The current status of the dialog.

Additional Inherited Members

- Signals inherited from AbstractPickSelector
void selected (string text)
 This signal should be emitted when a value is selected.

Detailed Description

A pick selector used for selecting an item from a list.

width: parent.width
text: qsTr("Select from list")
pickSelector: ListPickSelector {
model: ListModel {
ListElement { name: "One"; value: 1 }
ListElement { name: "Two"; value: 2 }
ListElement { name: "Three"; value: 3 }
ListElement { name: "Four"; value: 4 }
ListElement { name: "Five"; value: 5 }
}
textRole: "name"
}
}
See Also
DatePickSelector, TimePickSelector, ValueButton
Examples:
gconf.qml, selectors.qml, and settings.qml.