Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127174

protobuf scalar types stop working if registered using QML_USING

XMLWordPrintable

    • Android
    • 3d6c2827a (dev), 1d1a3de8b (6.8), 80c6d3c08 (dev), 0f868c885 (6.8), 12fb7d274 (dev), 94cbd20c8 (dev), f3d4b786d (6.8), 7157c897f (dev), 7ed5f038f (dev), bf7261d67 (dev), a75a06ede (6.8), 070739086 (dev), 04fe9e7c6 (6.8)

      Somehow type registration using the following form:

      struct QQmlProtobufFixed32Foreign
      {
          Q_GADGET
          QML_FOREIGN(QtProtobuf::fixed32)
          QML_USING(uint32_t)
      };
      

      breaks the Android protobuf tests.

      The issue is only reproducible in CI for me. Once the ProtobufQuick library is linked to a test qml modules like tst_protobuf_basictypes_qml they stop work as they did before the ProtobufQuick was introduced. The issue is not reproducible in host platforms.

      Any assignment to value type fields, that have the type that is registered as QML_USING throws the "Type error" exception.

        For Gerrit Dashboard: QTBUG-127174
        # Subject Branch Project Status CR V

            ulherman Ulf Hermann
            semlanik Alexey Edelev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: