Hi

Thanks for the reply.

Isn't the current constructor a public default constructor? I would think that Q_DECLARE_METATYPE would also not work if the class's constructors were incorrect?

I followed your guidelines and changed the class's constructors and destructors to the following:
Qt Code:
  1. ObserverProperty() : QObject(0) {
  2. observer_map = new QMap<QString,QVariant>;
  3. setObjectName("Test");
  4. }
  5.  
  6. ObserverProperty(const ObserverProperty& observer_property) {
  7. observer_map = new QMap<QString,QVariant>(observer_property.observerMap());
  8. setObjectName(observer_property.objectName());
  9. setParent(observer_property.parent());
  10. }
  11. ~ObserverProperty() { delete observer_map; }
  12. ~SharedObserverProperty() {}
To copy to clipboard, switch view to plain text mode 

However the problem did not go away.