Fix resolving paint servers going through stack overflow


The parsing function resolvePaintServers() goes through the whole
node structure and calls itself recursively to resolve paint
servers which is not needed. Instead, store the styles that
need to be resolved and go through them. This avoids causing
a stack overflow.

Task-number: QTBUG-145916
Pick-to: 6.11
Change-Id: Ie225bb51461f051b70b395f985b03006ccf9415c
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
commitb702c4b3ac0fea5758452ef98de5d8b87ccb0c27
parent6d161fac25853d89fdd3c7df34dc4526fb363e40
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeMon, 27 Apr 2026 06:22:14 +0000