[Interest] QDBus Dict

Lucas Betschart lucasbetschart at gmail.com
Sat Jul 7 13:19:36 CEST 2012


2012/7/7 Thiago Macieira <thiago.macieira at intel.com>:
> On sábado, 7 de julho de 2012 12.29.38, Lucas Betschart wrote:
>> It still doesn't work.. I know that the value will be an int, but
>> qdbus_cast<QMap<QString, int > >(ret.arguments().first()); returns a
>> compiler error.
>
> And you don't think that's relevant information?


In file included from /usr/include/qt4/QtCore/qvariant.h:48:0,
                 from /usr/include/qt4/QtCore/qabstractitemmodel.h:45,
                 from /usr/include/qt4/QtCore/QtCore:4,
                 from /usr/include/qt4/QtDBus/QtDBus:3,
                 from ../libQUbuntuOne/QUbuntuOne.h:5,
                 from ../libQUbuntuOne/SyncDaemonConfig.cpp:1:
/usr/include/qt4/QtCore/qmetatype.h: In static member function 'static
int QMetaTypeId2<T>::qt_metatype_id() [with T = QMap<QString, int>]':
/usr/include/qt4/QtCore/qmetatype.h:230:44:   instantiated from 'int
qMetaTypeId(T*) [with T = QMap<QString, int>]'
/usr/include/qt4/QtCore/qvariant.h:573:55:   instantiated from 'T
qvariant_cast(const QVariant&) [with T = QMap<QString, int>]'
/usr/include/qt4/QtDBus/qdbusargument.h:176:34:   instantiated from 'T
qdbus_cast(const QVariant&, T*) [with T = QMap<QString, int>]'
../libQUbuntuOne/SyncDaemonConfig.cpp:96:61:   instantiated from here
/usr/include/qt4/QtCore/qmetatype.h:169:80: error: 'qt_metatype_id' is
not a member of 'QMetaTypeId<QMap<QString, int> >'
/usr/include/qt4/QtCore/qmetatype.h:169:83: warning: control reaches
end of non-void function [-Wreturn-type]
make: *** [SyncDaemonConfig.o] Error 1



More information about the Interest mailing list