Priority: P2: Important
Affects Version/s: None
Fix Version/s: None
Component/s: Core: Event loop
Let's be honest: the change from int to qsizetype sizes in Qt 6.0 was more than rushed. Half the API and a good chunk of implementation code is still using int when it should be using qsizetype, and we have been papering over this issue by making qMin() allow mixed-type arguments and, apparently, by removing the annoying MSVC warnings that, in Qt 5, so nicely pin-pointed all these implicit conversions as hard errors.
There were several real bugs in e.g. the QBuffer code corresponding to int/qsizetype, so there's probably more.
Acceptance criterium: every int has been inspected and, if needed, ported to qsizetype. Unfortunately, relying on compiler warnings isn't enough, as explicit casts won't raise warnings, but need to be ported nonetheless.
|For Gerrit Dashboard: QTBUG-103532|
|411668,2||Fix return value of qGlobalPostedEventsCount()||dev||qt/qtbase||Status: MERGED||+2||0|
|411669,4||QCoreApplication: port some indexed to ranged for loops||dev||qt/qtbase||Status: MERGED||+2||0|
|411670,4||QCoreApplication/QPostEventList: fix int/qsizetype mismatches||dev||qt/qtbase||Status: MERGED||+2||0|
|412074,2||QCoreApplication: port some indexed to ranged for loops||6.3||qt/qtbase||Status: MERGED||+2||0|
|412075,3||QCoreApplication/QPostEventList: fix int/qsizetype mismatches||6.3||qt/qtbase||Status: MERGED||+2||0|
|412117,2||QCoreApplication: port some indexed to ranged for loops||tqtc/lts-6.2||qt/tqtc-qtbase||Status: MERGED||+2||0|
|412118,3||QCoreApplication/QPostEventList: fix int/qsizetype mismatches||tqtc/lts-6.2||qt/tqtc-qtbase||Status: MERGED||+2||0|