Hi All,

I want to connect dbus signal with my Qt Apps.

Tried with below mentioned piece of code
Qt Code:
  1. example::example(const QString &service, const QString &path, const char *interface,const QDBusConnection &connection,QObject *parent):QDBusAbstractInterface(service, path, interface,connection,parent)
  2. {
  3.  
  4. bool val= this->connection().connect(service,path,QString("/myInterface),QString("PropertyChanged"),QString("QString,QDBusVariant"),this,SLOT(stateChanged(QString,QVariant)));
  5. qDebug() << " Value is " << val;
  6.  
  7.  
  8. }
To copy to clipboard, switch view to plain text mode 

Here my Dbus signal signature is

Qt Code:
  1. PropertyChanged(string name, variant value)
To copy to clipboard, switch view to plain text mode 

Always my slot is not at all connected

Could anybody provide here sample code.


Thanks

Yuvaraj