Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
None
-
6.3.0
-
None
-
9c37876d6f (pyside/pyside-setup/dev) 9c37876d6f (pyside/tqtc-pyside-setup/dev), da9081d40 (dev), 67a8f157e (dev)
Description
When searching for
"Q_.*_EXPORT .* qHash\("
in Qt's source code, all results should be hashable from Python. The following types are hashable with PyQt6 (and from C++ with qHash), but not with PySide6:
Qt Core
- QLocale
- QRegularExpression
- QJsonValue
- QVersionNumber
- QMimeType
- QUuid
- QUrlQuery
- QKeyCombination (actually defined in qhashfunctions.h but new in Qt 6)
Qt Gui
- QKeySequence
- QTransform
- QPointingDeviceUniqueId
- QFont
- QRawFont
Qt DBus
- QDBusObjectPath
- QDBusSignature
Qt Widgets
- QSizePolicy
Qt Network
- QSslError
- QSslCertificate
- QOcspResponse
- QSslEllipticCurve
- QSslDiffieHellmanParameters
Qt Positioning
- QGeoAreaMonitorInfo
- QGeoSatelliteInfo
- QGeoAddress
- QOpenGLVersionProfile
- QGeoCoordinate
- QGeoPositionInfo
- QGeoShape
- QGeoLocation
Misc
Untested, judging from source code:
- Qt Quick: QQmlProperty
- Qt MQTT: QMqttTopicName, QMqttTopicFilter
- Qt Connectivity: QNdefRecord
- Qt Quick 3D: QQsbCollection, QSSGShaderFeatures
Attachments
For Gerrit Dashboard: PYSIDE-1906 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
409220,4 | Expose the qHash() functions as tp_hash | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
409502,2 | PySide6: Remove qHash() specifications | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
526154,4 | Avoid converting to string for calculating the hash value | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
526155,5 | Remove hash-specializations for QPoint, QRect, QSize | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |