Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Foo::componentComplete()
- {
- QObjectList children = this->children();
- for (int i = 0; i < children.length(); i++)
- {
- if(QString(children[i]->metaObject()->className()).contains("MyClass"))
- {
- this->myChildList.append(static_cast<MyClass*>(children[i]));
- }
- }
- }
- ChartView {
- id: chart
- title: "Top-5 car brand shares in Finland"
- anchors.fill: parent
- legend.alignment: Qt.AlignBottom
- antialiasing: true
- PieSeries {
- id: pieSeries
- PieSlice { label: "Volkswagen"; value: 13.5 }
- PieSlice { label: "Toyota"; value: 10.9 }
- PieSlice { label: "Ford"; value: 8.6 }
- PieSlice { label: "Skoda"; value: 8.2 }
- PieSlice { label: "Volvo"; value: 6.8 }
- }
- }
Add Comment
Please, Sign In to add comment