Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Unknown method return type: QRemoteObjectPendingReply
Forum Updated to NodeBB v4.3 + New Features

Unknown method return type: QRemoteObjectPendingReply

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 441 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vleon
    wrote on last edited by
    #1

    QRemoteObjectPendingCall

    I am using QtRO for my qt quick project.
    When calling a function (return bool) in the replica, but there is an error.
    "qrc:/qml/XXXXX.qml:45": Error: Unknown method return type: QRemoteObjectPendingReply<bool>"

    It seems QRemoteObjectPendingReply isn't registered in QML. I looked up the source code qremoteobjectpendingcall.h, and found that the class is not declared by Q_OBJECT.

    So how should I do the RPC needing return a value? discard using QRemoteObjectPendingReply , but emit a signal when result ready?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vleon
      wrote on last edited by
      #2

      who can tell me....

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        This is a module that is likely not widely used by the members of this forum. You should try bringing your question to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          This is a module that is likely not widely used by the members of this forum. You should try bringing your question to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

          V Offline
          V Offline
          vleon
          wrote on last edited by
          #4

          @SGaist said in Unknown method return type: QRemoteObjectPendingReply:

          Hi and welcome to devnet,

          This is a module that is likely not widely used by the members of this forum. You should try bringing your question to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

          okay, thanks.....

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved