QT and dbus - no such signal

Michael Zanetti michael_zanetti at gmx.net
Fri Jan 8 13:24:08 CET 2010


On Friday 08 January 2010 12:52:14 Christian Rüb wrote:
> Hi,
> 
> I am about to write my own little GPS application in Qt and try to connect
>  to FixStatusChanged signal from Gypsy but have the following problem
> 
> Code snippet:
> ...
> deviceInterface = new QDBusInterface("org.freedesktop.Gypsy",
>  "/org/freedesktop/Gypsy/default", "org.freedesktop.Gypsy.Device",
>  QDBusConnection::systemBus(),this); ...
> connect(deviceInterface, SIGNAL(FixStatusChanged(int)), this,
>  SIGNAL(fixChanged(int)));
> 


try this:
...
deviceInterface = new QDBusInterface("org.freedesktop.Gypsy", "/default", 
"org.freedesktop.Gypsy.Device", QDBusConnection::systemBus(),this);

Qt doesn't need the full path for the node again. 


Here you find some very useful QtDBus examples:
http://techbase.kde.org/Development/Tutorials#D-Bus

Not sure if you know about "qdbusviewer". It comes with your Qt4 installation 
and helps you a lot debugging and understanding DBus.

Hope this helps.
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.openmoko.org/pipermail/community/attachments/20100108/15cb519a/attachment-0001.pgp 


More information about the community mailing list