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

A button used for displaying a value. More...

Inherits AbstractButton.

Properties

AbstractPickSelector pickSelector
 The pick selector to be displayed when the button is clicked.
ValueButtonStyle style
 Provides styling properties for the button.
string valueText
 The value text displayed in the button.
- Properties inherited from AbstractButton
Action action
 The Action associated with the button.
bool autoRepeat
 Whether the button should accept auto-repeated key events.
bool checkable
 Whether the button is checkable.
bool checked
 Whether the button is checked.
ExclusiveGroup exclusiveGroup
 The ExclusiveGroup to which the button belongs.
string iconName
 The name of the icon to be used.
string iconSource
 The source of the icon to be used.
bool pressed
 Whether the button is pressed.
keysequence shortcut
 The keyboard shorcut used to click the button.
string text
 The text to be displayed in the button.

Additional Inherited Members

- Signals inherited from AbstractButton
void clicked ()
 Emitted when the button is clicked.
void toggled (bool checked)
 Emitted when the button checked property is changed.

Detailed Description

A button used for displaying a value.

width: parent.width
text: qsTr("Select from list")
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, ListPickSelector, TimePickSelector, ValueButtonStyle
Examples:
gconf.qml, screenshot.qml, selectors.qml, and settings.qml.

Property Documentation

string ValueButton::valueText

The value text displayed in the button.

If a pick selector is set, this property will be updated when a value is chosen.

See Also
pickSelector