Subtitled QML Type
List item displaying a second string under the main label. More...
| Import Statement: | import Lomiri.Components.ListItems 1.3 |
| Inherits: |
Properties
- hovered : bool
- pressed : bool
- sensingMargins
- sensingMargins.all : real
- sensingMargins.bottom : real
- sensingMargins.left : real
- sensingMargins.right : real
- sensingMargins.top : real
- subText : string
Signals
- clicked()
- clicked()
- pressAndHold()
- pressAndHold()
Detailed Description
Note: The component is deprecated. Use ListItem component instead.
Examples:
import Lomiri.Components.ListItems as ListItem Column { ListItem.Subtitled { text: "Idle" subText: "Secondary label" } ListItem.Subtitled { text: "Disabled" enabled: false subText: "Secondary label" } ListItem.Subtitled { text: "Selected" selected: true subText: "Secondary label" } ListItem.Subtitled { text: "Progression" subText: "Secondary label" progression: true } ListItem.Subtitled { text: "Icon" subText: "Secondary label" iconName: "compose" } ListItem.Subtitled { text: "Multiple lines" subText: "This is a multi-line subText.\nUp to 5 lines are supported." } ListItem.Subtitled { text: "Multiple lines" subText: "It also works well with icons and progression." iconName: "compose" progression: true } }
Property Documentation
The property group specifies the margins extending the visual area where the touch events are sensed. Positive values mean the area will be extended on the specified direction outside of the visual area, negative values mean the sensing will fall under the component's visual border. All values default to 0. This does not affect mouse sensing area, which only covers the visual area of the component.
Note: If the visual area and the sensing margins are not reaching the 4x4 grid units limit, the component will fall back to these minimum limits. For example, extending a 2x2 grid unit visual component into 5x4 grid units sensing area would look as follows:
AbstractButton { width: units.gu(2) height: units.gu(2) Icon { name: "settings" } sensingArea { // no need to set the vertical direction as the minimum of // 4 grid units will be taken automatically leftMargin: units.gu(1) // we only have to add 2 grid units as the width + left margin // already gives us 3 grid units out of 5 rightMargin: units.gu(2) } }
Signal Documentation
This handler is called when there is a mouse click on the button and the button is not disabled. If action is defined, the action will be triggered.
Note: The corresponding handler is onClicked.
This handler is called when there is a mouse click on the button and the button is not disabled. If action is defined, the action will be triggered.
Note: The corresponding handler is onClicked.
This handler is called when there is a long press.
Note: The corresponding handler is onPressAndHold.
This handler is called when there is a long press.
Note: The corresponding handler is onPressAndHold.