Q_DECLARE_METATYPE can not be used in a dynamic load/unload plugin
When I use Q_DECLARE_METATYPE in a plugin, and that plugin will be load/unload at the runtime.
When I calling the function at second time load and execute period, the program crashed. How to deal with such a problem? Is this a bug or just a wrong usage.
"This is the same question with no answer, Qt 5 didn't support for qUnregisterMetaType anymore":http://stackoverflow.com/questions/19234703/using-q-declare-metatype-with-a-dll-that-may-be-loaded-multiple-times
Can you reproduce the crash with a minimal compilable example ? If so, I would suggest to post this question on the interest mailing list. You can also look at the "bug report system":http://bugreports.qt-project.org to see if there something about it