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

Unknown method return type: QRemoteObjectPendingReply<bool>

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.13.0
    • Fix Version/s: None
    • Component/s: Remote Objects
    • Labels:
      None
    • Platform/s:
      All
    • Technical Risk:
      Normal

      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

            Assignee:
            bstottle Brett Stottlemyer
            Reporter:
            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