Hi, experts,
In qt doc, qtdbus supports customized type “MyStruct”, so I write code
as below:
class MyStruct
{
public:
…
int type;
QByteArray data;
};
Q_DECLARE_METATYPE(MyStruct);
QDBusArgument &operator<<(QDBusArgument &argument, const MyStruct &msg);
const QDBusArgument &operator>>(const QDBusArgument &argument, MyStruct &msg);
but when I use it as below:
void notify(MyStruct & msg) {
…
QDBusReply<int> reply = iface->call(“messageArrived”, msg);
…
}
It reports “no matching function for call to QDBusInterface::call(const
char[21], MyStruct &)”
How can I use it in this case? Or I must convert to QVariant?
Best Regards
He Yunlong (何云龙)
Cube: GTC-18M08
iNet: 8751-1645
Tel: +86-010-57511645
Email: [email protected]<mailto:[email protected]>
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev