Fix dashstroke reading and animated stroke width and dashoffset


The reading of the stroke dash properties would fail to read correctly
for cases where the dash pattern had an odd number of elements, in
which case the spec says to double the pattern, swapping dashes and
gaps. In particular, this means that if only a single dash is
specified, the default gap should have the same value.

Reading also failed in cases with more than two elements.

In addition, the QML generation would fail to handle it when the
stroke width or dash offset had animated values. This is not so rare
in real world Lottie files.

This commit fixes these issues, depending on the update to the qml
generator in qtdeclarative.

Fixes: QTBUG-147250
Pick-to: 6.12
Change-Id: I1780a4c59e2f06ad009d2a176437cc477168abb9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit884883f2578f8f1e803c19a39ba6f8206f0f9bae
parentcf51975a57511e04cae055e927b33e73e4553d7b
authorEirik Aavitsland <eirik.aavitsland@qt.io>
committerEirik Aavitsland <eirik.aavitsland@qt.io>
commit timeSun, 7 Jun 2026 13:09:50 +0000