Descriptions
This component presents a list of songs, given by a model.
API Properties
- alias model
- Provides access to the listview's model
- alias index
- Int, the listview's current index
- string selectedSong
- Song which is currentlist selected
- bool highlightVisible
- Determines if the highlighted component is shown or not
- int textPixelSize
- Size of text in pixels
- int estimatedHeight
- Estimates the height of the list. Intended as read-only.
Signals
- listItemSelected
- Emitted if an item was selected
- Parameter:
- variant itemid, id of the mediaitem
- string title, title of the mediaitem
- int type, type of the mediaitem
Functions
-
Example
ScrollableMusicList {
id: musicListView
visible: true
opacity: 1
anchors.fill: parent
model: songsFromAlbum // your model
onListItemSelected: {
// your implementation
}
}