Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1906

All qHash functions should be exposed to Python

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.3.0
    • PySide
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes