Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
21
Description
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.
The goal is not to just shut up compiler warnings. The goal has to be to enable a smooth qsizetype transition with no impedance mismatches between containers and the rest of Qt. This means that even public APIs are not exempt from being changed (examples that were fixed: QVersionNumber; QByteArrayList).
Attachments
Issue Links
- is blocked by
-
QTBUG-104810 Finish migration to qsizetype [GUI: Accessibility]
- Open
-
QTBUG-104811 Finish migration to qsizetype [GUI: Basic Input System]
- Open
-
QTBUG-104812 Finish migration to qsizetype [GUI: Complex Input Methods]
- Open
-
QTBUG-104813 Finish migration to qsizetype [GUI: DnD]
- Open
-
QTBUG-104814 Finish migration to qsizetype [GUI: Font Handling]
- Open
-
QTBUG-104815 Finish migration to qsizetype [GUI: HiDPI]
- Open
-
QTBUG-104816 Finish migration to qsizetype [GUI: Menus]
- Open
-
QTBUG-104818 Finish migration to qsizetype [GUI: Painting]
- Open
-
QTBUG-104819 Finish migration to qsizetype [GUI: Printing]
- Open
-
QTBUG-104820 Finish migration to qsizetype [GUI: Text Handling]
- Open
-
QTBUG-104822 Finish migration to qsizetype [GUI: Wacom Tablets]
- Open
-
QTBUG-104823 Finish migration to qsizetype [GUI: Window Management]
- Open
-
QTBUG-104824 Finish migration to qsizetype [GUI: Workspace]
- Open
-
QTBUG-104992 QPixmap::loadFromData() fails for data > 4GiB on 64-bit platforms
- Open
-
QTBUG-104817 Finish migration to qsizetype [GUI: OpenGL]
- Open
-
QTBUG-104821 Finish migration to qsizetype [GUI: Vulkan]
- Open