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

Error: Unknown method return type: QRemoteObjectPendingCall

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.12.4
    • Remote Objects
    • None
    • macOS, Windows

    Description

      When I add a slot with return value to rep file and pass a replica to qml, then if called the slot in qml, the qml engine complains about:

      Error: Unknown method return type: QRemoteObjectPendingCall

      After registering this kind of type in somewhere like main function, this problem is solved. Registering code is:

      qRegisterMetaType<QRemoteObjectPendingCall>();

      However, I think this should be done by the QtRO module itself, not manually by me.

      Demo that reproduces this issue is attached.

      Attachments

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

        Activity

          People

            bstottle Brett Stottlemyer
            jimmyzju Jimmy Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes