README-qt6-qhash-signature.md 383 Bytes
Newer Older
1
2
# qt6-qhash-signature

Maksim Demyanov's avatar
Maksim Demyanov committed
3
4
5
6
7
Warns and corrects the signature for `qHash`.

`uint qHash(MyType x, uint seed)` is replaced with `size_t qHash(MyType x, size_t seed)`

Also corrects the signature for `qHashBits`, `qHashRange` and `qHashRangeCommutative`.
8
9

This fix-it is intended to aid the user porting from Qt5 to Qt6.
Maksim Demyanov's avatar
Maksim Demyanov committed
10
Run this check with Qt5. The produced fixed code will compile on Qt6.