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

Unknown method return type: QRemoteObjectPendingReply<bool>

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.13.0
    • Remote Objects
    • None
    • All

    Description

      I'm having trouble using the return value QRemoteObjectPendingReply<bool> of a slot in qml.

      // .rep file
      class MyClass {
          SLOT(bool mySlot())
      };
      
      // Rep_MyClass_Replica.h by REPC
      ...
      public Q_SLOTS:
          QRemoteObjectPendingReply<bool> mySlot() {
              ...
          }
      ...
      
      // qml file
      ...
      var result = myClass.mySlot() --> Error: Unknown method return type: QRemoteObjectPendingReply<bool>
      result.waitForFinished();
      ...
      

      Adding qRegisterMetaType<QRemoteObjectPendingCall>(); doesn't help (see QTBUG-76893).
      Adding qRegisterMetaType<QRemoteObjectPendingReply<bool>>(); doesn't work.

      Attachments

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

        Activity

          People

            bstottle Brett Stottlemyer
            chrisser Suli Sahne
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes