Fix Qt container might detach warnings


Qt Containers were not iterated over by using references in
range-for loops causing the warning.

Pick-to: 6.11 6.10
Change-Id: I16b785c893081fcf3698a6a0d99b45c183602d3d
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
commitc795a9d7523ecebcb4f349a8c3a065e8dd2bce45
parent0c1a5a7a3ce5a098d8a64483ce2953d0fce03910
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeMon, 2 Mar 2026 12:26:27 +0200