Is there a way to receive a signal from an item created by a Repeater in the QML itself? Consider the following simplified example:
Rectangle {
…
Repeater {
model: cppModel
delegate: SimpleDelegate{}
}
}
// SimpleDelegate.qml
Item{
…
signal itemSignal(int index)
…
}
Is there a way to receive itemSignal somewhere where I can then operate on the item and, most likely, all the other items in the repeater as well? So far I haven’t been able to figure out how to handle this scenario without involving the C++ model.
↧