Differences between ListModel and Repeater? Which type is better to implement a list of components containing controls?
I have a QQmlListProperty containing QObjects. One attribute of these objects is a weekdayList(i.e M,S,S, for Monday, Saturday, Sunday). I implemented a qml-component to edit these weekDay-attribute(7 checkable buttons, one for every weekday, looks like the android alarm-clock).
Now I want to show all objects in a ListView, or a Repeater and the delegate should also contain this editing-weekday-component. I tried it already with a ListView and it seems to work. The gui-component is rendered properly, but no interaction with the component takes place. The buttons aren't clickable.
Maybe someone can give me some hints, how I can achieve my target and which of the qml-componente(ListView, Repeater) are appropriate.
I tried it already with a ListView and it seems to work. The gui-component is rendered properly, but no interaction with the component takes place. The buttons aren't clickable.
This sounds strange. Can you post the code ?
Differences between ListModel and Repeater?
Lots of. One of them being
ListView's are scrollable,
Repeaters are not. In fact it has a different funcionality. You can find more info comparing the documentation of both the components.
Ok, thank you for your response.
So you mean, that use of editing controls in ListView-delegates should work?
I'll post the code later...
@wuarmin the main difference there is a time of instantiating delegates. if there is not clickable buttons in your listview, might be problem with your code
Thank you for your help and the informations. The problem was that I put a mouse-area over the gui-controls.