[Kde-pim] Problem with akonadi plugin serializer
Michael Parchet
mparchet at sunrise.ch
Wed Mar 13 14:10:22 GMT 2013
Le 12 mars 2013 à 14:42, Kevin Krammer <krammer at kde.org> a écrit :
Hello Kevin,
> Hi Michael,
>
> On Tuesday, 2013-03-12, Michael Parchet wrote:
>> Hello kevin kramer,
>>
>> I tried to make an akonadi plugin for my project but I have this error when
>> I try to compile.
>>
>> /opt/local/include/QtCore/qmetatype.h:169: erreur : no member named
>> 'qt_metatype_id' in 'QMetaTypeId<History>' (History is the Tutorial class)
>
> Hmm.
> Try adding
> Q_DECLARE_METATYPE(History)
> at the end of history.h
>
Thank you very much for your proposal.
I write this code line at the end of History.h :
Q_DECLARE_METATYPE (History)
#endif
but I got a new error that I couldn't understand. Here is this error :
QtCore/qmetatype.h:169: erreur : no member named 'qt_metatype_id' in 'QMetaTypeId<const char>'
Can you help me again please ?
I have also put these followed line code in History.cpp I found it in the qmetatype documentation.
Here is this code
History::~History()
{
int id = QMetaType::type("History");
if (id != 0) {
void *HistoryPtr = QMetaType::construct(id);
QMetaType::destroy(id, HistoryPtr);
HistoryPtr = 0;
}
}
Thanks for your help.
Best regards
mparchet
> Cheers,
> Kevin
> --
> Kevin Krammer, KDE developer, xdg-utils developer
> KDE user support, developer mentoring
> _______________________________________________
> KDE PIM mailing list kde-pim at kde.org
> https://mail.kde.org/mailman/listinfo/kde-pim
> KDE PIM home page at http://pim.kde.org/
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list