[Development] MSVC not inlining QRect inline functions (anymore?)

Philippe philwave at gmail.com
Mon Jun 8 16:05:19 CEST 2026


I have just verified that not only QRect, but QPoint, QSize and QMargins are
also affected :(

QCheckedInt overflow checks only manifest as assertions in debug builds.
Yet, this debug-only feature has a negative impact on the MSVC release
version :(
Not exactly, "Pay Only For What You Use"...

Philippe

On Sun, 7 Jun 2026 17:48:33 +0200
Christian Ehrlicher via Development <development at qt-project.org> wrote:

> Hi,
> 
> I recently found out that none of the QRect inline functions are inlined by msvc no matter what compiler options I pass. Tested with recent cl (19.51.36244) but also saw this with older msvc2022 compilers.
> Is this known and should/can we do something against this?
> 
> 
> Christian
> -- Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development




More information about the Development mailing list