[Interest] QDBus Dict

Thiago Macieira thiago.macieira at intel.com
Sat Jul 7 15:24:04 CEST 2012


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.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120707/cdc9b542/attachment.sig>


More information about the Interest mailing list