[Interest] Problem with QDBusArgument unmarshalling (without sending via dbus).
kotov.valery at gmail.com
Wed Aug 13 14:03:28 CEST 2014
During writing some tests we faced a problem with unpacking QDBusArgument
in case the message was not really sent via dbus.
If we send custom type via dbus both marshaling and unmarshaling are
performed without any error.
But if make direct call (instead of calling via dbus) and try to unpack
QDBusArgument without sending it we get “QDBusArgument: read from a
write-only object” error and empty object as result of unpacking.
Actually, we're trying to perform something like the following:
arg << customType;
QDBusVariant var = QDBusVariant(QVariant::fromValue(arg));
var.variant().value<QDBusArgument>() >> result;
If we perform the actual dbus call unmarshalling performs correctly. If we
use direct call - the result contains empty value (default value).
Could you please if it is possible to “trick” Qt and perform unmarshaling
even if we do not send object via dbus?
Thank you for your support!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest