Thread
:
DBus a{sv} type in Qt
View Single Post
kende
2010-09-07 , 07:18
Posts: 6 | Thanked: 2 times | Joined on Nov 2009 @ Tampere, Finland
#
1
Hullo,
I'm trying to use BlueZ BT stack in N900 PR 1.2 with Qt 4.6.2. I'm not able to connect to signals that contain a{sv} parameter which I think should be used as QVariantMap in Qt. Connect and signals work if I use Python but for some reason Qt does not accept that QVariantMap parameter.
<code>
QDBusConnection * m_dbus = new QDBusConnection(QDBusConnection::systemBus());
QDBusMessage message = QDBusMessage::createMethodCall("org.bluez", "/", "org.bluez.Manager", "DefaultAdapter");
QDBusMessage reply = m_dbus->call(message);
QString m_path = reply.arguments().first().value<QDBusObjectPath>() .path();
QDBusInterface * interface = new QDBusInterface("org.bluez", m_path, "org.bluez.Adapter", *m_dbus);
connect(interface, SIGNAL(DeviceFound(QString, QVariantMap)), this, SLOT(slotDeviceFound(QString, QVariantMap)));
</code>
Quote & Reply
|
kende
View Public Profile
Send a private message to kende
Find all posts by kende