Details
-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.13.0
-
None
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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-77178 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
214275,15 | Support SLOTs with return values in QML | dev | qt/qtremoteobjects | Status: MERGED | +2 | 0 |