Android: bound derived child safe area margins


Child views are clipped to their parent, so overflow must
not create new unsafe margins. Cover all edges and window
modes, including Android versions without enforcement.

Move the child checks before the enforcement guard so
Android 9 also exercises derived margins. Check every
window mode and extend the child beyond all four edges.
Compare against the parent margins to cover nonzero
insets, then reset the geometry to check recalculation.

Amends c0d5bf9ea075611474d2c98d1c4ad1f6dba5df45.

Pick-to: 6.12
Fixes: QTBUG-151716
Change-Id: Idaa733263ca3b29ae85439eadd2b5c3fc9b82734
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
commitade71557797b6f429635583203a6aece5a2f2e77
parentfe1f3cf44ce99bff3f637a793d77261b0ff89960
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeWed, 21 Oct 2026 10:56:55 +0000