Repeater and PieSeries/PieSlices
Unsolved
QML and Qt Quick
-
Hello guys,
Long time since I didnt come here. But today I really need your help.
I have a PieSeries that will hold a chart.
I need to add PieSlices depending on a QList from my C++ class.What I tried to do is to use a Reapeter with my list as model. But it seems that delegates item (PieSlices) are not linked to PieSeries.
This is what I tried :
PieSeries { size: 0.9 id: pieSeries Repeater { model: controller.list delegate : PieSlice { label : name_from_list color: color_from_list } } }
That doesnt work.
Do you have any idea on what could work ? Or why this code does not ?Thanks you guys for your help !
Cya