Make QSvgVisitor traversal iterative


Change the implementation to use an iterative approach instead of
recursion to avoid stack overflows when a deeply nested SVG file
is used.

Fixes: QTBUG-150983
Pick-to: 6.12
Change-Id: I3ed103cdc95fdfca31349f1c8b39e8411aa086b8
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commitb3702f7933a86e803cc71276ed32f614886f59f1
parentbd4d2dd8912d4229dc4608cda332c42c2d061315
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeFri, 9 Oct 2026 08:18:25 +0000