PDA

View Full Version : how to receive a object returned by a method via QtDBus



stackpop
30th August 2011, 11:10
im my xml file,
<method name="CurrentInputContext">
<arg name="name" direction="out" type="o"/>
</method>

The method returns a object,how to receive it ?

QDBusReply<QObject> reply=iface.call("CurrentInputContext");

can this work? how to show the Object?