[Qt-interest] Fwd: A Qt-dbus question
振华张
zhenhua2000 at gmail.com
Thu Sep 2 04:43:34 CEST 2010
Hi Thiago,
2010/9/2 Thiago Macieira <thiago at kde.org>:
> On Wednesday 1. September 2010 15.59.39 振华张 wrote:
>> I met a qt-dbus related problem and seek for your kindly help. I
>> declared DBus Object as follws and use qdbusxml2cpp to integrate it
>> with my Qt project. I wrote both C and python test case to call my
>> method on this interface. However, it always tell me No such method
>> existing on the interface. I am pretty much sure about the existence
>> of my object and path. Could anyone help on this?
>
> Please post a small, self-contained, compilable example of the problem. The
> portion that you pasted will not compile.
Attached is the compilable version of my problem. To reproduce my
problem, unzip and build the file. You may need copy myobject.conf to
/etc/dbus-1/system.d and restart dbus daemon.
The key point is the parameter of MyMethod is "a(sy)" type. If I
change the parameter to a simple "s", everything works fine.
Thanks,
Zhenhua
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Senior Product Manager - Nokia, Qt Development Frameworks
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus_adaptor.tar.bz2
Type: application/x-bzip2
Size: 4251 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100902/4f358568/attachment.bz2
More information about the Qt-interest-old
mailing list