Commit Graph

2 Commits

Author SHA1 Message Date
Ulf Hermann 5d51790adb Examples: Fix chapter5 and chapter6 of extending-qml tutorial
We need to pass a parent to the PieSlices in order to make them visible.
Use inline components to reduce the boiler plate.

Amends commit 775eac90ed

Pick-to: 6.9 6.8
Fixes: QTBUG-135475
Change-Id: I55e2591703ceecbeb883a3f0de2a2a84b1600529
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2025-04-10 13:35:01 +02:00
Ulf Hermann bb6cde5229 Modernize "extending QML" tutorial
- Use qt_standard_project_setup()
- Don't use NO_RESOURCE_TARGET_PATH
- Use QQuickView::loadFromModule()

Pick-to: 6.7
Change-Id: Ie68fbcaaa8824ca1cfe186bc9ead905e705e97c7
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-04-05 00:42:09 +02:00