Qt dbus not exporting the full dbus interface

Thiago Macieira thiago at kde.org
Mon Jun 1 14:06:32 PDT 2009


smog zer wrote:
>I'm having some issues generating QT bindings, the thing is that i
>create the class and the adaptor
>
>
>    this->erfhorde = new Erfhorde();
>
>    this->hordeAdaptor = new ErfhordeAdaptor ( this->erfhorde );
>
>    QDBusConnection::sessionBus().registerObject ( "/erf",
> this->hordeAdaptor ); 
> QDBusConnection::sessionBus().registerService (
> "aaaa.rendering.erfhorde" );

You should export the object, not the adaptor:
	registerObject( "/erf", erfhorde );

>What could i be doing wrong ?

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090601/bfabeb9b/attachment.pgp 


More information about the dbus mailing list