Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[Solved] Receiving signals emitted by Repeater item

$
0
0
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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles