QDbusMessage Problem with dbus
Nirav.Rabara at Matrixtelesol.com
Mon Nov 23 04:08:31 PST 2009
I am using Qt binding to speak with DBus, I have created interface with
Now when I cal QDbusMessage msg = interface.call("ListDevices");
It gives me the following,
qDebu() << " msg :" << msg;
msg: QDBusMessage = (type=MethodReturn, service":1:0", signature="ao",
Now when I try to get string from the message by using following, code got
to infinite loop.
QList <QVariant> devices = msg.arguments();
QString dName =name.toStringList(); // code gets hang here
qDebug << "Debug" << dName;
Can Anybody help me, how to iterate this msg and find the List of devices
from the message(last arguments[contents])
Your suggestion would be a great help for me.
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dbus