Pick-to: 6.8 Change-Id: I8a5e93e7ed04ed9b090209696e649835a88604a5 Reviewed-by: Robert Griebl <robert.griebl@qt.io>