hi,
if you call Q_DECLARE_METATYPE for the second time on the same type, qmetatypestatictype returns a valid id (line 11 in the referenced code from my previous post). in that case, the handler only performs a rather simple test (look at the section highlighted as /* OLD_CODE */ in the code fragment in my previous post, line 51-55 + 64). in particular, the handler is not updated in terms of the callback handlers defined by the bew class declared as a metatype.
in my modification, this is what i do ( refer to section highlighted by /* NEW_CODE */, line 42-50): update the callback pointers whenever Q_DECLARE_METATYPE is called in adjacent calls.
best regards
hauke
Bookmarks