Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qt6-lottie for openSUSE:Factory 
checked in at 2026-11-30 14:24:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qt6-lottie (Old)
 and      /work/SRC/openSUSE:Factory/.qt6-lottie.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qt6-lottie"

Mon Nov 30 14:24:57 2026 rev:44 rq:1400909 version:6.12.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/qt6-lottie/qt6-lottie.changes    2026-10-18 
19:23:02.932074775 +0200
+++ /work/SRC/openSUSE:Factory/.qt6-lottie.new.1340718/qt6-lottie.changes       
2026-11-30 14:26:42.708715557 +0100
@@ -1,0 +2,6 @@
+Tue Nov 24 13:37:20 UTC 2026 - Christophe Marin <[email protected]>
+
+- Update to 6.12.1
+  https://www.qt.io/blog/qt-6.12.1-released
+
+-------------------------------------------------------------------

Old:
----
  qtlottie-everywhere-src-6.12.0.tar.xz

New:
----
  qtlottie-everywhere-src-6.12.1.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qt6-lottie.spec ++++++
--- /var/tmp/diff_new_pack.jrY4Hy/_old  2026-11-30 14:26:44.588794476 +0100
+++ /var/tmp/diff_new_pack.jrY4Hy/_new  2026-11-30 14:26:44.590794560 +0100
@@ -16,7 +16,7 @@
 #
 
 
-%define real_version 6.12.0
+%define real_version 6.12.1
 %define short_version 6.12
 %define short_name qtlottie
 %define tar_name qtlottie-everywhere-src
@@ -28,7 +28,7 @@
 %endif
 #
 Name:           qt6-lottie%{?pkg_suffix}
-Version:        6.12.0
+Version:        6.12.1
 Release:        0
 Summary:        QML API for rendering graphics and animation
 # LICENSE.GPL3-EXCEPT only applies to the conan recipe which is not used
@@ -77,6 +77,10 @@
 Summary:        Qt 6 Lottie library - Development files
 Requires:       libQt6Lottie6 = %{version}
 Requires:       qt6-lottie = %{version}
+Requires:       cmake(Qt6Gui) = %{real_version}
+Requires:       cmake(Qt6Qml) = %{real_version}
+Requires:       cmake(Qt6Quick) = %{real_version}
+Requires:       cmake(Qt6QuickVectorImage) = %{real_version}
 
 %description -n qt6-lottie-devel
 Development files for the Qt 6 Lottie library.
@@ -102,7 +106,10 @@
 Summary:        Qt 6 LottieVectorImageGeneratorPrivate library - Development 
files
 Requires:       libQt6LottieVectorImageGenerator6 = %{version}
 Requires:       cmake(Qt6Lottie) = %{real_version}
-Requires:       cmake(Qt6QuickVectorImageGeneratorPrivate) = %{real_version}
+Requires:       cmake(Qt6LottieVectorImageHelpers) = %{real_version}
+Requires:       cmake(Qt6Quick) = %{real_version}
+Requires:       cmake(Qt6QuickShapes) = %{real_version}
+Requires:       cmake(Qt6QuickTimeline) = %{real_version}
 
 %description -n qt6-lottievectorimagegenerator-private-devel
 Development files for the Qt 6 LottieVectorImageGeneratorPrivate private 
library.
@@ -118,7 +125,7 @@
 %package -n qt6-lottievectorimagehelpers-private-devel
 Summary:        Qt 6 LottieVectorImageHelpers library - Development files
 Requires:       libQt6LottieVectorImageHelpers6 = %{version}
-Requires:       cmake(Qt6Lottie) = %{real_version}
+Requires:       cmake(Qt6Quick) = %{real_version}
 
 %description -n qt6-lottievectorimagehelpers-private-devel
 Development files for the Qt 6 LottieVectorImageHelpers private library.

++++++ qtlottie-everywhere-src-6.12.0.tar.xz -> 
qtlottie-everywhere-src-6.12.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtlottie-everywhere-src-6.12.0/.cmake.conf 
new/qtlottie-everywhere-src-6.12.1/.cmake.conf
--- old/qtlottie-everywhere-src-6.12.0/.cmake.conf      2026-09-26 
16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/.cmake.conf      2026-11-16 
23:30:03.000000000 +0100
@@ -1,4 +1,4 @@
-set(QT_REPO_MODULE_VERSION "6.12.0")
+set(QT_REPO_MODULE_VERSION "6.12.1")
 set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1")
 set(QT_EXTRA_INTERNAL_TARGET_DEFINES
     "QT_NO_CONTEXTLESS_CONNECT=1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtlottie-everywhere-src-6.12.0/.tag 
new/qtlottie-everywhere-src-6.12.1/.tag
--- old/qtlottie-everywhere-src-6.12.0/.tag     2026-09-26 16:59:03.000000000 
+0200
+++ new/qtlottie-everywhere-src-6.12.1/.tag     2026-11-16 23:30:03.000000000 
+0100
@@ -1 +1 @@
-6187542f2e7cd69477d1bf45697135c0f78417f4
+6337100b59bbd2acb07485ce6a75a6ecf8536ae4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/coin/axivion/ci_config_linux.json 
new/qtlottie-everywhere-src-6.12.1/coin/axivion/ci_config_linux.json
--- old/qtlottie-everywhere-src-6.12.0/coin/axivion/ci_config_linux.json        
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/coin/axivion/ci_config_linux.json        
2026-11-16 23:30:03.000000000 +0100
@@ -25,7 +25,7 @@
             "_copy_from": "AxivionLinker",
             "input_files": [
                 "build/lib/lib*.so*.ir",
-                "build/qml/*/*/*/lib*.so*.ir"
+                "build/qml/**/lib*.so*.ir"
             ],
             "ir": "build/$(env:TESTED_MODULE_COIN).ir"
         }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtlottie-everywhere-src-6.12.0/dependencies.yaml 
new/qtlottie-everywhere-src-6.12.1/dependencies.yaml
--- old/qtlottie-everywhere-src-6.12.0/dependencies.yaml        2026-09-26 
16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/dependencies.yaml        2026-11-16 
23:30:03.000000000 +0100
@@ -1,10 +1,10 @@
 dependencies:
   ../qtbase:
-    ref: 025bdad181de241e81bf853c8a2d7bf3d19261a9
+    ref: 5af1a37e31a869cd6eb8a73d82e2c71a450e6634
     required: true
   ../qtdeclarative:
-    ref: 4332fbbb4c340463dc8cee36dda0c85d932122d8
+    ref: 935c3c01bc74fee3b8725ae502cd67bb99e3b7e2
     required: true
   ../qtquicktimeline:
-    ref: 645ba346fd8175aa0572d66c917862f8a7c4a966
+    ref: 62a6478a3923a31152370d850d1408f5da51d161
     required: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/examples/lottie/CMakeLists.txt 
new/qtlottie-everywhere-src-6.12.1/examples/lottie/CMakeLists.txt
--- old/qtlottie-everywhere-src-6.12.0/examples/lottie/CMakeLists.txt   
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/examples/lottie/CMakeLists.txt   
2026-11-16 23:30:03.000000000 +0100
@@ -1,5 +1,10 @@
 # Copyright (C) 2025 The Qt Company Ltd.
 # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
 
-qt_internal_add_example(qtlottieviewer)
-qt_internal_add_example(lottietoqml)
+if(TARGET Qt6::QuickControls2)
+    qt_internal_add_example(qtlottieviewer)
+endif()
+
+if(TARGET Qt6::lottietoqml)
+    qt_internal_add_example(lottietoqml)
+endif()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/src/lottiegenerator/qlottievisitor.cpp 
new/qtlottie-everywhere-src-6.12.1/src/lottiegenerator/qlottievisitor.cpp
--- old/qtlottie-everywhere-src-6.12.0/src/lottiegenerator/qlottievisitor.cpp   
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/src/lottiegenerator/qlottievisitor.cpp   
2026-11-16 23:30:03.000000000 +0100
@@ -36,8 +36,8 @@
         << QByteArray().fill(' ', m_savedPaintInfos.size() * 4) \
         << ((trimmingState() == Sequential) ? QByteArray("trimmed") : 
QByteArray{})
 
-QLottieVisitor::QLottieVisitor(const QString lottieFileName, QQuickGenerator 
*generator)
-    : m_lottieFileName(lottieFileName), m_generator(generator)
+QLottieVisitor::QLottieVisitor(QQuickGenerator *generator)
+    : m_generator(generator)
 {
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/src/lottiegenerator/qlottievisitor_p.h 
new/qtlottie-everywhere-src-6.12.1/src/lottiegenerator/qlottievisitor_p.h
--- old/qtlottie-everywhere-src-6.12.0/src/lottiegenerator/qlottievisitor_p.h   
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/src/lottiegenerator/qlottievisitor_p.h   
2026-11-16 23:30:03.000000000 +0100
@@ -73,7 +73,7 @@
         QList<TransformAnimationInfo> transformAnimations;
     };
 
-    QLottieVisitor(const QString lottieFileName, QQuickGenerator *generator);
+    QLottieVisitor(QQuickGenerator *generator);
     virtual ~QLottieVisitor() {}
 
     void saveState() override;
@@ -134,7 +134,6 @@
     QString idForNode(const QLottieBase *node);
     QString scrub(const QString &raw);
 
-    QString m_lottieFileName;
     QQuickGenerator *m_generator;
 
     PaintInfo m_currentPaintInfo;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/src/plugins/vectorimageformats/lottie/main.cpp
 
new/qtlottie-everywhere-src-6.12.1/src/plugins/vectorimageformats/lottie/main.cpp
--- 
old/qtlottie-everywhere-src-6.12.0/src/plugins/vectorimageformats/lottie/main.cpp
   2026-09-26 16:59:03.000000000 +0200
+++ 
new/qtlottie-everywhere-src-6.12.1/src/plugins/vectorimageformats/lottie/main.cpp
   2026-11-16 23:30:03.000000000 +0100
@@ -7,6 +7,7 @@
 #include <QtLottie/private/qlottieroot_p.h>
 #include <QtLottie/private/qlottieprecomposition_p.h>
 #include <QtCore/qfile.h>
+#include <QtCore/qbuffer.h>
 #include <QtCore/qscopeguard.h>
 
 #include <QtQuick/private/qquickanimation_p.h>
@@ -16,18 +17,23 @@
 class QLottieVectorImagePluginGenerator : public 
QQuickVectorImagePluginGenerator
 {
 public:
-    bool generate(const QString &fileName, QQuickItemGenerator *generator) 
override;
+    bool generate(QQuickGenerator *generator) override;
 };
 
-bool QLottieVectorImagePluginGenerator::generate(const QString &fileName, 
QQuickItemGenerator *generator)
+bool QLottieVectorImagePluginGenerator::generate(QQuickGenerator *generator)
 {
-    QFile f(fileName);
     QLottieRoot root;
 
-    if (f.open(QIODevice::ReadOnly)) {
-        QByteArray jsonSource = f.readAll();
+    const QQuickVectorImageSource source = generator->source();
+    QByteArray jsonSource = source.data();
+    if (jsonSource.isEmpty()) {
+        QFile f(source.fileName());
+        if (f.open(QIODevice::ReadOnly))
+            jsonSource = f.readAll();
+    }
 
-        if (root.parseSource(jsonSource, QUrl::fromLocalFile(fileName)) >= 0) {
+    if (!jsonSource.isEmpty()) {
+        if (root.parseSource(jsonSource, 
QUrl::fromLocalFile(source.fileName())) >= 0) {
             root.setStructureDumping(true);
             root.updateProperties(0);
 
@@ -37,10 +43,11 @@
                 qputenv("QT_QUICKVECTORIMAGE_FREEZE", 
QByteArray::number(freezeTime));
             }
 
-            
generator->addExtraImport(QStringLiteral("Qt.labs.lottieqt.VectorImageHelpers"));
-            generator->setGeneratorFlags(
-                
generator->generatorFlags().setFlag(QQuickVectorImageGenerator::TimelineAnimation));
-            QLottieVisitor visitor(fileName, generator);
+            QQuickQmlGenerator *qmlGenerator = static_cast<QQuickQmlGenerator 
*>(generator);
+            
qmlGenerator->addExtraImport(QStringLiteral("Qt.labs.lottieqt.VectorImageHelpers"));
+            qmlGenerator->setGeneratorFlags(
+                
qmlGenerator->generatorFlags().setFlag(QQuickVectorImageGenerator::TimelineAnimation));
+            QLottieVisitor visitor(generator);
             visitor.render(root);
 
             return true;
@@ -59,10 +66,10 @@
     QLottieVectorImagePlugin();
     ~QLottieVectorImagePlugin();
 
-    QQuickVectorImagePluginGenerator *createGenerator(const QString &fileName) 
override;
+    QQuickVectorImagePluginGenerator *createGenerator(const 
QQuickVectorImageSource &source) override;
 
 private:
-    bool canRead(QIODevice &input) const;
+    bool canRead(QIODevice *input) const;
 };
 
 QLottieVectorImagePlugin::QLottieVectorImagePlugin()
@@ -73,23 +80,30 @@
 {
 }
 
-QQuickVectorImagePluginGenerator 
*QLottieVectorImagePlugin::createGenerator(const QString &fileName)
+QQuickVectorImagePluginGenerator 
*QLottieVectorImagePlugin::createGenerator(const QQuickVectorImageSource 
&source)
 {
-    QFile f(fileName);
-    if (!f.open(QIODevice::ReadOnly))
+    std::unique_ptr<QIODevice> device;
+
+    QByteArray ba = source.data();
+    if (source.isFile())
+        device.reset(new QFile(source.fileName()));
+    else
+        device.reset(new QBuffer(&ba));
+
+    if (!device->open(QIODevice::ReadOnly))
         return nullptr;
 
-    if (!canRead(f))
+    if (!canRead(device.get()))
         return nullptr;
 
     return new QLottieVectorImagePluginGenerator;
 }
 
-bool QLottieVectorImagePlugin::canRead(QIODevice &input) const
+bool QLottieVectorImagePlugin::canRead(QIODevice *input) const
 {
-    const qint64 pos = input.pos();
-    auto cleanup = qScopeGuard([&] { input.seek(pos); });
-    QTextStream s(&input);
+    const qint64 pos = input->pos();
+    auto cleanup = qScopeGuard([&] { input->seek(pos); });
+    QTextStream s(input);
     const QString head = s.read(256);
     bool res = QStringView(head).trimmed().startsWith(QChar::fromLatin1('{'));
     return res;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/src/qml/doc/qtlottieanimation.qdocconf 
new/qtlottie-everywhere-src-6.12.1/src/qml/doc/qtlottieanimation.qdocconf
--- old/qtlottie-everywhere-src-6.12.0/src/qml/doc/qtlottieanimation.qdocconf   
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/src/qml/doc/qtlottieanimation.qdocconf   
2026-11-16 23:30:03.000000000 +0100
@@ -13,7 +13,7 @@
 # No C++ API to document, prevent QDoc from searching for a module header
 moduleheader            =
 
-depends                += qtdoc qtqml qtquick
+depends                += qtdoc qtqml qtquick qtcmake
 
 qhp.projects            = QtLottieAnimation
 
@@ -23,17 +23,26 @@
 qhp.QtLottieAnimation.indexTitle          = Qt Lottie Animation
 qhp.QtLottieAnimation.indexRoot           =
 
-qhp.QtLottieAnimation.subprojects         = qmltypes examples
+qhp.QtLottieAnimation.subprojects         = manual examples qmltypes 
helpertypes
 qhp.QtLottieAnimation.subprojects.qmltypes.title = QML Types
 qhp.QtLottieAnimation.subprojects.qmltypes.indexTitle = Qt Lottie Animation 
QML Types
-qhp.QtLottieAnimation.subprojects.qmltypes.selectors = qmltype
+qhp.QtLottieAnimation.subprojects.qmltypes.selectors = 
qmlmodule:Qt.labs.lottieqt
 qhp.QtLottieAnimation.subprojects.qmltypes.sortPages = true
 
+qhp.QtLottieAnimation.subprojects.helpertypes.title = QML Helper Types
+qhp.QtLottieAnimation.subprojects.helpertypes.indexTitle = Qt Lottie Vector 
Image Helpers QML Types
+qhp.QtLottieAnimation.subprojects.helpertypes.selectors = 
qmlmodule:Qt.labs.lottieqt.VectorImageHelpers
+qhp.QtLottieAnimation.subprojects.helpertypes.sortPages = true
+
 qhp.QtLottieAnimation.subprojects.examples.title = Examples
 qhp.QtLottieAnimation.subprojects.examples.indexTitle = Qt Lottie Animation 
Examples
 qhp.QtLottieAnimation.subprojects.examples.selectors = example
 qhp.QtLottieAnimation.subprojects.examples.sortPages = true
 
+qhp.QtLottieAnimation.subprojects.manual.title = Qt Lottie Animation
+qhp.QtLottieAnimation.subprojects.manual.indexTitle = Qt Lottie Animation 
topics
+qhp.QtLottieAnimation.subprojects.manual.type = manual
+
 tagfile                 = qtlottieanimation.tags
 
 examplesinstallpath     = lottie
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/src/qml/doc/src/qtlottie-toc.qdoc 
new/qtlottie-everywhere-src-6.12.1/src/qml/doc/src/qtlottie-toc.qdoc
--- old/qtlottie-everywhere-src-6.12.0/src/qml/doc/src/qtlottie-toc.qdoc        
1970-01-01 01:00:00.000000000 +0100
+++ new/qtlottie-everywhere-src-6.12.1/src/qml/doc/src/qtlottie-toc.qdoc        
2026-11-16 23:30:03.000000000 +0100
@@ -0,0 +1,12 @@
+// Copyright (C) 2026 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR 
GFDL-1.3-no-invariants-only
+
+/*!
+    \page qtlottieanimation-toc.html
+    \title Qt Lottie Animation topics
+
+    \list
+        \li \l {lottietoqml}{lottietoqml tool}
+        \li \l {qt_target_qml_from_lottie}{CMake: qt_target_qml_from_lottie}
+    \endlist
+*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/src/qml/doc/src/qtlottie.qdoc 
new/qtlottie-everywhere-src-6.12.1/src/qml/doc/src/qtlottie.qdoc
--- old/qtlottie-everywhere-src-6.12.0/src/qml/doc/src/qtlottie.qdoc    
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/src/qml/doc/src/qtlottie.qdoc    
2026-11-16 23:30:03.000000000 +0100
@@ -111,12 +111,20 @@
 */
 
 /*!
-    \qmlmodule Qt.labs.lottieqt 1.0
+    \qmlmodule Qt.labs.lottieqt
     \title Qt Lottie Animation QML Types
     \ingroup qmlmodules
     \brief Provides QML types to display Lottie graphics and animations.
+    \noautolist
 
     \include qtlottie.qdoc usage
+    \generatelist qmltypesbymodule Qt.labs.lottieqt
 
-    \section1 QML Types
+    \section1 VectorImageHelpers submodule
+
+    Types from the \l {Qt.labs.lottieqt.VectorImageHelpers} submodule
+    replicate specialized behavior defined by vector graphics file formats.
+
+    \include qtlottievectorimagehelpers.qdoc usage
+    \generatelist qmltypesbymodule Qt.labs.lottieqt.VectorImageHelpers
 */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/src/qml/doc/src/qtlottievectorimagehelpers.qdoc
 
new/qtlottie-everywhere-src-6.12.1/src/qml/doc/src/qtlottievectorimagehelpers.qdoc
--- 
old/qtlottie-everywhere-src-6.12.0/src/qml/doc/src/qtlottievectorimagehelpers.qdoc
  2026-09-26 16:59:03.000000000 +0200
+++ 
new/qtlottie-everywhere-src-6.12.1/src/qml/doc/src/qtlottievectorimagehelpers.qdoc
  2026-11-16 23:30:03.000000000 +0100
@@ -14,12 +14,14 @@
     graphics file formats it loads and are not intended to be
     generally useful.
 
+//! [usage]
     To use the types in this module, import the module with the
     following line:
 
     \qml
     import Qt.labs.lottieqt.VectorImageHelpers
     \endqml
+//! [usage]
 
     \section1 QML Types
 */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/tests/baseline/scenegrabber/Main.qml 
new/qtlottie-everywhere-src-6.12.1/tests/baseline/scenegrabber/Main.qml
--- old/qtlottie-everywhere-src-6.12.0/tests/baseline/scenegrabber/Main.qml     
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/tests/baseline/scenegrabber/Main.qml     
2026-11-16 23:30:03.000000000 +0100
@@ -8,66 +8,67 @@
 
 Rectangle {
     id: toplevel
+    width: 800 / Screen.devicePixelRatio
+    height: width
     color: "darkgray"
-    property real pad: 10 / Screen.devicePixelRatio
-    property real maxDim: 400 / Screen.devicePixelRatio - (3 * pad / 2)
-    property real minDim: 215 / Screen.devicePixelRatio - (3 * pad / 2)
-    property real sceneScale: Math.max(Math.min(0.5 / Screen.devicePixelRatio, 
maxDim / qtlottie.width), minDim / qtlottie.width)
-    property real sceneWidth: qtlottie.width * sceneScale
-    property real sceneHeight: qtlottie.height * sceneScale
-    width: 2 * sceneWidth + 3 * pad
-    height: sceneHeight + 2 * pad
-
-
-    Image {
-        id: la_background
-        source: "qrc:///checkered.png"
-        fillMode: Image.Tile
-        x: toplevel.pad
-        y: toplevel.pad
-        width: toplevel.sceneWidth
-        height: toplevel.sceneHeight
-        horizontalAlignment: Image.AlignLeft
-        verticalAlignment: Image.AlignTop
-
-        LottieAnimation {
-            id: qtlottie
-            scale: toplevel.sceneScale
-            transformOrigin: Item.TopLeft
-            objectName: "qtlottie_animation_item"
-            quality: LottieAnimation.HighQuality
-            autoPlay: false
-            property int freezeFrame: -1
-            onStatusChanged: {
-                if (status === LottieAnimation.Ready) {
-                    if (freezeFrame < 0)
-                        freezeFrame = Math.floor(startFrame + ((endFrame - 
startFrame) / 2));
-                    gotoAndStop(freezeFrame);
+    property real dim: (width / 2) - grid.spacing
+
+    Grid {
+        id: grid
+        columns: 2
+        padding: spacing / 2
+        spacing: toplevel.width / 80
+
+        Repeater {
+            model: 2
+
+            Image {
+                source: "qrc:///checkered.png"
+                fillMode: Image.Tile
+                width: toplevel.dim
+                height: width
+                horizontalAlignment: Image.AlignLeft
+                verticalAlignment: Image.AlignTop
+
+                VectorImage {
+                    source: qtlottie.source
+                    assumeTrustedSource: true
+                    property bool _qt_usenondefaultgenerator: (index === 1)
+                    anchors.fill: parent
+                    fillMode: VectorImage.PreserveAspectFit
+
+                    preferredRendererType: VectorImage.CurveRenderer
+                    animations.paused: true
+                    clip: true
                 }
             }
-            clip: true
         }
-    }
 
-    Image {
-        id: vi_background
-        source: "qrc:///checkered.png"
-        fillMode: Image.Tile
-        x: la_background.width + 2 * pad
-        y: la_background.y
-        width: la_background.width
-        height: la_background.height
-        horizontalAlignment: Image.AlignLeft
-        verticalAlignment: Image.AlignTop
-
-        VectorImage {
-            scale: qtlottie.scale
-            transformOrigin: Item.TopLeft
-            assumeTrustedSource: true
-            animations.paused: true
-            source: qtlottie.source
-            preferredRendererType: VectorImage.CurveRenderer
-            clip: true
+        Image {
+            source: "qrc:///checkered.png"
+            fillMode: Image.Tile
+            width: toplevel.dim
+            height: width
+            horizontalAlignment: Image.AlignLeft
+            verticalAlignment: Image.AlignTop
+
+            LottieAnimation {
+                id: qtlottie
+                scale: Math.min(toplevel.dim / width, toplevel.dim / height)
+                transformOrigin: Item.TopLeft
+                textureSize: Qt.size(toplevel.dim, toplevel.dim)
+                objectName: "qtlottie_animation_item"
+                quality: LottieAnimation.HighQuality
+                autoPlay: false
+                property int freezeFrame: -1
+                onStatusChanged: {
+                    if (status === LottieAnimation.Ready) {
+                        if (freezeFrame < 0)
+                            freezeFrame = Math.floor(startFrame + ((endFrame - 
startFrame) / 2));
+                        gotoAndStop(freezeFrame);
+                    }
+                }
+            }
         }
     }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/qquickvectorimage/CMakeLists.txt
 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/qquickvectorimage/CMakeLists.txt
--- 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/qquickvectorimage/CMakeLists.txt
     1970-01-01 01:00:00.000000000 +0100
+++ 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/qquickvectorimage/CMakeLists.txt
     2026-11-16 23:30:03.000000000 +0100
@@ -0,0 +1,34 @@
+# Copyright (C) 2026 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
+cmake_minimum_required(VERSION 3.16)
+project(parse LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+find_package(Qt6 COMPONENTS Core Gui Svg Qml Quick)
+find_package(Qt6 COMPONENTS GuiPrivate LottiePrivate QuickVectorImagePrivate 
QuickPrivate QuickVectorImageGeneratorPrivate)
+
+qt_add_executable(qquickvectorimage
+    main.cpp
+)
+
+target_link_libraries(qquickvectorimage PUBLIC
+    Qt::Core
+    Qt::GuiPrivate
+    Qt::Svg
+    Qt::Qml
+    Qt::Quick
+    Qt::LottiePrivate
+    Qt::QuickVectorImagePrivate
+    Qt::QuickVectorImageGeneratorPrivate
+    Qt::QuickPrivate
+)
+target_link_libraries(qquickvectorimage PRIVATE
+     -fsanitize=fuzzer
+)
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/qquickvectorimage/bugs/leak_elementcopies.json
 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/qquickvectorimage/bugs/leak_elementcopies.json
--- 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/qquickvectorimage/bugs/leak_elementcopies.json
       1970-01-01 01:00:00.000000000 +0100
+++ 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/qquickvectorimage/bugs/leak_elementcopies.json
       2026-11-16 23:30:03.000000000 +0100
@@ -0,0 +1 @@
+{"v":"5.3.1","fr":29.9700012207031,"ip":0,"op":175.000007127896,"w":400,"h":224,"nm":"Comp
 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 
1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[200,112,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"sha1pes":[{"d":1,"ty":"el","s":{"a":0,"k":[100,100],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse
 Path 1","mn":"ADBE Vector Shape - 
Ellipse","hd":false},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":0,"s":[0,0,0,1],"e":[1,1,1,1]},{"t":64.0000026067734}],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":8},"nm":"Stroke
 1","mn":"ADBE Vector Graphic - 
Stroke","hd":false}],"ip":0,"op":175.000007127896,"st":0,"bm":0}],"markers":[]}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/qquickvectorimage/main.cpp
 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/qquickvectorimage/main.cpp
--- 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/qquickvectorimage/main.cpp
   1970-01-01 01:00:00.000000000 +0100
+++ 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/qquickvectorimage/main.cpp
   2026-11-16 23:30:03.000000000 +0100
@@ -0,0 +1,83 @@
+// Copyright (C) 2026 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#include <QGuiApplication>
+#include <QtGlobal>
+#include <QQmlEngine>
+#include <QQuickWindow>
+#include <QtGui/private/qfont_p.h>
+#include <QtQuickVectorImage/private/qquickvectorimage_p.h>
+#include <QtQuickVectorImage/private/qquickvectorimage_p_p.h>
+
+#ifdef QT_ASAN_ENABLED
+#  include <sanitizer/lsan_interface.h>
+#else
+#  define __lsan_disable()
+#  define __lsan_enable()
+#endif
+
+// silence warnings
+static QtMessageHandler mh = qInstallMessageHandler([](QtMsgType, const 
QMessageLogContext &,
+                                                       const QString &) {});
+
+// Driver may allocate caches or other persistent state, which we need to 
suppress.
+// Add any false positive leaks here.
+extern "C" const char *__lsan_default_suppressions()
+{
+    return "leak:libgallium\n"
+           "leak:swrast\n"
+           "leak:libGLX\n"
+           "leak:libEGL\n"
+           "leak:libfontconfig\n"
+           "leak:swiftshader\n"
+           "leak:libvulkan\n";
+}
+
+Q_GLOBAL_STATIC(std::shared_ptr<QGuiApplication>, guiApp)
+Q_GLOBAL_STATIC(QQuickWindow, window)
+Q_GLOBAL_STATIC(QQuickVectorImage, vectorImage)
+Q_GLOBAL_STATIC(QQmlEngine, engine)
+
+extern "C" int LLVMFuzzerInitialize(int *_argc, char ***_argv)
+{
+    Q_UNUSED(_argc);
+    Q_UNUSED(_argv);
+
+    // One-time setup allocations referenced only from the mmap'ed V4 GC heap
+    // are invisible to LeakSanitizer, so ignore everything allocated here.
+    __lsan_disable();
+
+    static int argc = 1;
+    static char arg1[] = "fuzzer";
+    static char *argv[] = {arg1, nullptr};
+
+    QHashSeed::setDeterministicGlobalSeed();
+    (*guiApp()) = std::make_shared<QGuiApplication>(argc, argv);
+
+    window()->resize(512, 512);
+    window()->show();
+
+    QQmlEngine::setContextForObject(vectorImage(), engine()->rootContext());
+    vectorImage()->setParentItem(window()->contentItem());
+    vectorImage()->setSize(window()->size());
+    vectorImage()->setAssumeTrustedSource(true);
+
+    __lsan_enable();
+
+    return 0;
+}
+
+extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size)
+{
+    QByteArray data = QByteArray::fromRawData(Data, Size);
+
+    QQuickVectorImagePrivate *d = QQuickVectorImagePrivate::get(vectorImage());
+    d->setSourceData(data);
+    window()->grabWindow(); // renders one frame
+    d->setSourceData(QByteArray{});
+
+    QCoreApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete);
+    QCoreApplication::processEvents();
+    QFontCache::instance()->clear();
+    return 0;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/vectorimage/CMakeLists.txt
 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/vectorimage/CMakeLists.txt
--- 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/vectorimage/CMakeLists.txt
   2026-09-26 16:59:03.000000000 +0200
+++ 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/vectorimage/CMakeLists.txt
   1970-01-01 01:00:00.000000000 +0100
@@ -1,32 +0,0 @@
-# Copyright (C) 2026 The Qt Company Ltd.
-# SPDX-License-Identifier: BSD-3-Clause
-
-cmake_minimum_required(VERSION 3.16)
-project(parse LANGUAGES CXX)
-
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-set(CMAKE_AUTOMOC ON)
-set(CMAKE_AUTORCC ON)
-set(CMAKE_AUTOUIC ON)
-
-find_package(Qt6 COMPONENTS Core Gui Qml Quick)
-find_package(Qt6 COMPONENTS LottiePrivate QuickVectorImagePrivate QuickPrivate)
-
-qt_add_executable(vectorimage
-    main.cpp
-)
-
-target_link_libraries(vectorimage PUBLIC
-    Qt::Core
-    Qt::Gui
-    Qt::Qml
-    Qt::Quick
-    Qt::LottiePrivate
-    Qt::QuickVectorImagePrivate
-    Qt::QuickPrivate
-)
-target_link_libraries(vectorimage PRIVATE
-     -fsanitize=fuzzer
-)
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/vectorimage/bugs/leak_elementcopies.json
 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/vectorimage/bugs/leak_elementcopies.json
--- 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/vectorimage/bugs/leak_elementcopies.json
     2026-09-26 16:59:03.000000000 +0200
+++ 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/vectorimage/bugs/leak_elementcopies.json
     1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-{"v":"5.3.1","fr":29.9700012207031,"ip":0,"op":175.000007127896,"w":400,"h":224,"nm":"Comp
 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 
1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[200,112,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"sha1pes":[{"d":1,"ty":"el","s":{"a":0,"k":[100,100],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse
 Path 1","mn":"ADBE Vector Shape - 
Ellipse","hd":false},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":0,"s":[0,0,0,1],"e":[1,1,1,1]},{"t":64.0000026067734}],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":8},"nm":"Stroke
 1","mn":"ADBE Vector Graphic - 
Stroke","hd":false}],"ip":0,"op":175.000007127896,"st":0,"bm":0}],"markers":[]}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/vectorimage/main.cpp 
new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/vectorimage/main.cpp
--- old/qtlottie-everywhere-src-6.12.0/tests/libfuzzer/qml/vectorimage/main.cpp 
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/tests/libfuzzer/qml/vectorimage/main.cpp 
1970-01-01 01:00:00.000000000 +0100
@@ -1,70 +0,0 @@
-// Copyright (C) 2026 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-
-#include <QGuiApplication>
-#include <QtGlobal>
-#include <QTemporaryFile>
-#include <QQmlEngine>
-#include <QQuickWindow>
-#include <QtQuickVectorImage/private/qquickvectorimage_p.h>
-
-// silence warnings
-static QtMessageHandler mh = qInstallMessageHandler([](QtMsgType, const 
QMessageLogContext &,
-                                                       const QString &) {});
-
-// Driver may allocate caches or other persistent state, which we need to 
suppress.
-// Add any false positive leaks here.
-extern "C" const char *__lsan_default_suppressions()
-{
-    return "leak:libgallium\n"
-           "leak:swrast\n"
-           "leak:libGLX\n"
-           "leak:libEGL\n"
-           "leak:libglapi\n"
-           "leak:swiftshader\n"
-           "leak:libvulkan\n";
-}
-
-extern "C" int LLVMFuzzerInitialize(int *_argc, char ***_argv)
-{
-    Q_UNUSED(_argc);
-    Q_UNUSED(_argv);
-
-    QHashSeed::setDeterministicGlobalSeed();
-    static int argc = 1;
-    static char arg1[] = "fuzzer";
-    static char *argv[] = {arg1, nullptr};
-
-    static QGuiApplication *qga = new QGuiApplication(argc, argv);
-    Q_UNUSED(qga);
-
-    return 0;
-}
-
-extern "C" int LLVMFuzzerTestOneInput(const char *Data, size_t Size)
-{
-    // ### QQuickVectorImage cannot load from a QByteArray yet, so pass the 
data via a file
-    QTemporaryFile jsonFile;
-    if (!jsonFile.open())
-        return 0;
-    jsonFile.write(Data, qint64(Size));
-    if (!jsonFile.flush())
-        return 0;
-
-    QQuickWindow window;
-    window.resize(512, 512);
-    window.create();
-
-    QQmlEngine engine;
-    QQuickVectorImage vectorImage;
-    QQmlEngine::setContextForObject(&vectorImage, engine.rootContext());
-    vectorImage.setParentItem(window.contentItem());
-    vectorImage.setSize(window.size());
-    vectorImage.setAssumeTrustedSource(true);
-    vectorImage.setSource(QUrl::fromLocalFile(jsonFile.fileName()));
-
-    window.grabWindow(); // renders one frame
-
-    QCoreApplication::sendPostedEvents(nullptr, QEvent::DeferredDelete);
-    return 0;
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/qtlottie-everywhere-src-6.12.0/tools/lottietoqml/main.cpp 
new/qtlottie-everywhere-src-6.12.1/tools/lottietoqml/main.cpp
--- old/qtlottie-everywhere-src-6.12.0/tools/lottietoqml/main.cpp       
2026-09-26 16:59:03.000000000 +0200
+++ new/qtlottie-everywhere-src-6.12.1/tools/lottietoqml/main.cpp       
2026-11-16 23:30:03.000000000 +0100
@@ -12,6 +12,7 @@
 #include <QtQuickVectorImageGenerator/private/qquickitemgenerator_p.h>
 #include <QtQuickVectorImageGenerator/private/qquickqmlgenerator_p.h>
 #include <QtQuickVectorImageGenerator/private/qquickvectorimageglobal_p.h>
+#include <QtQuickVectorImageGenerator/private/qquickvectorimagesource_p.h>
 #include <QtLottie/private/qlottieroot_p.h>
 #include <QtLottieVectorImageGenerator/private/qlottievisitor_p.h>
 
@@ -121,7 +122,7 @@
     if (parser.isSet(optimizeOption))
         flags |= QQuickVectorImageGenerator::GeneratorFlag::OptimizePaths;
 
-    QQuickQmlGenerator generator(inFileName, flags, outFileName);
+    QQuickQmlGenerator generator(QQuickVectorImageSource(inFileName), flags, 
outFileName);
     generator.setShapeTypeName(typeName);
     generator.setCommentString(commentString);
     generator.setAssetFileDirectory(assetOutputDirectory);
@@ -141,7 +142,7 @@
             root.setStructureDumping(true);
             root.updateProperties(frameNo);
 
-            QLottieVisitor visitor(inFileName, &generator);
+            QLottieVisitor visitor(&generator);
             visitor.render(root);
             ok = generator.save();
         }
@@ -160,7 +161,7 @@
                 QQuickVectorImageIncubator 
incubator(QQmlIncubator::Synchronous,
                                                      engine.rootContext());
 
-                incubator.start(inFileName, flags);
+                incubator.start(QQuickVectorImageSource(inFileName), flags);
                 QObject *obj = incubator.object();
                 QQuickItem *item = qobject_cast<QQuickItem *>(obj);
                 if (item != nullptr) {

Reply via email to