QT and dbus - no such signal
christian.rueb at gmx.net
Sat Jan 9 16:18:29 CET 2010
Am Freitag, 8. Januar 2010 schrieb Christian Rüb:
> 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)));
> I want to pass the signal on to use it somewhere else in my application...
> now when starting my application I get:
> Object::connect: No such signal org::freedesktop::Gypsy::Device::FixStatusChanged(int)
> but mdbus -s org.freedesktop.Gypsy /org/freedesktop/Gypsy
> [SIGNAL] org.freedesktop.Gypsy.Device.FixStatusChanged( i:fixstatus )
> Do you have any idea what is going wrong?
> You can find the full code here:
> Thanks for any help.
Sorry for replying to myself, but after installing fso on my laptop and starting my application there the signal connection DOES work. So I guess it's related with Qt on my Freerunner...
I tested it with GPS Dummy device and received the FixStatusChanged signal. Also dbusviewer showed objects paths and signals/methods there.
I built Qt4 for SHR-unstable with SHR Makefile, Qt 4.5.2.
Does anyone have a Qt version running on SHR where connection signals DOES work?
More information about the community