[Interest] QDBus Dict

Lucas Betschart lucasbetschart at gmail.com
Sat Jul 7 18:17:19 CEST 2012

2012/7/7 Thiago Macieira <thiago.macieira at intel.com>:
> On sábado, 7 de julho de 2012 13.19.36, Lucas Betschart wrote:
>> /usr/include/qt4/QtCore/qmetatype.h:169:80: error: 'qt_metatype_id' is
>> not a member of 'QMetaTypeId<QMap<QString, int> >'
> Ah, right. You need to Q_DECLARE_METATYPE that type. And note that you can't
> use a comma in Q_DECLARE_METATYPE, so you need to typedef it to something
> before.
> And don't forget to qDBusRegisterMetaType too, which means writing the
> operator<< and operator>> marshalling functions.

Thank you very much. Now it works :)

More information about the Interest mailing list