ListItemBasic QML Type

The basic list item component in Neptune 3 UI. More...

Import Statement: import .
Since: Qt 5.11
Inherited By:

ListItem, ListItemFlatButton, ListItemProgress, ListItemSwitch, and ListItemTwoButtons

Properties

Detailed Description

The ListItemBasic provides a basic type of list item with an indicator as an icon or an image and text with subtext followed by the indicator.

The code snippet below shows how to use ListItemBasic:

import QtQuick 2.10
import shared.controls 1.0

Item {
    id: root
    ListView {
        model: 3
        delegate:  ListItemBasic {
            text: "Title ListItem"
            subText: "Subtitle ListItem"
        }
    }
}

For a list of components available in Neptune 3 UI, see Neptune 3 UI Components and Interfaces.

Property Documentation

accessoryBottomDelegateComponent : Component

This property holds an element at the bottom of a ListItem.


accessoryDelegateComponent1 : Component

This property holds a component on the right side of a ListItem.


accessoryDelegateComponent2 : Component

This property holds a component on the right side of a ListItem, next to accessoryDelegateComponent2, if it's defined.


dividerVisible : bool

This property specifies if there's a divider on a ListItem. The default value is true.


middleSpacerUsed : bool

This property specifies a margin between the left and the right parts of a ListItem. The default value is false.


rightSpacerUsed : bool

This property specifies a margin between the right side of a ListItem and the last element on the right side. The default value is false.


subText : string

This property holds text in the second line of a ListItem.


wrapText : bool

The property specifies whether the text and subtext are wrapped. In notifications, to display long text on several lines, set this property to true. In normal lists, this property can remain at false. The default value is false.


© 2018 Pelagicore AG. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.