Deliberate cross-posting is unlikely to win you any favours.
Deliberate cross-posting is unlikely to win you any favours.
"We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.
Hi All,
Could anybody help me on this issue?
Thanks
Yuvaraj R
You have a missing close quote in your code snippet.
Does Qt issue a warning about your connection when you run the program? Is stateChanged() declared as a slot?
Hi,
yes i declared stateChanged.
I suspect, problem with
bool val= this->connection().connect(service,path,QString("/myInterface),QString("PropertyChanged"),QString("Q String,QDBusVariant"),this,SLOT(stateChanged(QStri ng,QVariant)));
Thanks
Yuvaraj R
You still have a missing double-quote in your code example. You didn't answer my question regarding warnings.
I don't use Dbus but a cursory reading of the docs would indicate that your third argument (interface) is not correct. It looks like a path and not a dotted DBus interface name as, for example, you see in the D-Bus Remote Controlled Car Example.
You also say that the Dbus signature is "string name, variant value" but that is not the same as the signature in your call: "Q String,QDBusVariant". I don't know if this is correct or not.
Last edited by ChrisW67; 13th June 2011 at 10:28.
Hi,
I solved this issue 4 days back itself . I forgot to update here
Solution:
Qt Code:
QDBusConnection::systemBus().connect(SERVICE,path,INTERFACE,"PropertyChanged",this,SLOT(stateChanged(QString,QDBusVariant)));To copy to clipboard, switch view to plain text mode
Thanks
Yuvaraj R
Bookmarks