Fixes: QTBUG-109016 Pick-to: 6.5 Change-Id: Ib1c6fd993c5c43f1eea6a6f3ac72f0b52e8bf9a9 Reviewed-by: Antti Kokko <antti.kokko@qt.io>