Commit Graph

2 Commits

Author SHA1 Message Date
Fabian Kosmale 8d6796c145 VectorImage example: Fix qmllint warnings
Use required properties where needed, and properly qualify lookups. Use
ComponentBehavior: Bound so that the delegates can safely refer to the
ids in the same file.

This does not fix the unqualified warning in Heart.qml, as that file is
auto-generated, and the generator would need the fix instead.

Task-number: QTBUG-134589
Pick-to: 6.8
Change-Id: I6ef213004e0bb3e905a831749e9f0c2c5ca92518
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 704ce91ebd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-03-26 07:36:35 +00:00
Eskil Abrahamsen Blomfeldt 252048b956 Example for VectorImage
This introduces a small example of VectorImage and other ways
to display SVG content in a Qt Quick application. Its purpose is
to document the available APIs for this and explain what their
differences are.

The heart.svg is a public domain, no-attribution image which is
also used in other examples and manual tests in Qt.

Pick-to: 6.8.0 6.8
Change-Id: I457ffc01d7ea286a157a4a5bff0571098b852cef
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2024-09-11 15:11:31 +02:00