Unsolved Unknown method return type: QRemoteObjectPendingReply
-
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?
-
who can tell me....
-
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.
-
@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.....