[Development] MSVC not inlining QRect inline functions (anymore?)
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Sun Jun 7 17:57:48 CEST 2026
Am 07.06.2026 um 17:48 schrieb Christian Ehrlicher via Development:
> 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?
Forgot to say that it is working fine with QRectF so it looks like
QCheckedInt is the culprit.
QWidget w;
QRect r(w.geometry());
QRect r2(r.top(), r.left(), r.width(), r.height());
w.setGeometry(r2);
QRectF rf(r);
QRectF rf2(rf.top(), rf.left(), rf.width(), rf.height());
w.setGeometry(rf2.toRect());
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20260607/0dde711c/attachment.htm>
More information about the Development
mailing list