it seems that I have to implement the follow slot
int getValue
(QString key,
const QDBusMessage
&);
int getValue(QString key,const QDBusMessage&);
To copy to clipboard, switch view to plain text mode
and the slot implemantation is
int getValue
(QString key,
const QDBusMessage
& msg
) {
Return 0;
}
int getValue(QString key,const QDBusMessage& msg) {
QVariant v(2);
QDBusMessage reply= msg.createReply(v)
QDBusConnection::sessionBus().send(reply);
Return 0;
}
To copy to clipboard, switch view to plain text mode
However I recevied 2 replys in that case .
According to the QT document no reply should be send on return.
Bookmarks