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

protobuf scalar types stop working if registered using QML_USING

    XMLWordPrintable

Details

    • Android
    • 3d6c2827a (dev), 1d1a3de8b (6.8)

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes