My idea is to define a ListModel with some Elements, like this.
ListModel {
id: list
ListElement {
name: "test"
signal run
}
ListElement {
...
}
}
ListModel {
id: list
ListElement {
name: "test"
signal run
}
ListElement {
...
}
}
To copy to clipboard, switch view to plain text mode
Then I want to connect the Signal run with a State and start the Signal in Javascript with (for Example)
emit ListView.currentItem.signal
emit ListView.currentItem.signal
To copy to clipboard, switch view to plain text mode
Thank you for your help.
Bookmarks