Scene2D: fix rendering on Qt6


Only works with the OpenGL renderer for now.

Pick-to: 6.12 6.11 6.8
Change-Id: If4f515f6ace9ff84a92048033872b4ab71366233
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commit55a2f65a7b564f13de08b1e0547fe017736a6433
parent84e3df5f20c2089debf8587e02b29f859b764ad3
authorMauro Persano <mauro.persano@kdab.com>
committerMauro Persano <mauro.persano@kdab.com>
commit timeSat, 15 Aug 2026 13:29:13 +0000