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:
observer_map = new QMap<QString,QVariant>;
setObjectName("Test");
}
ObserverProperty(const ObserverProperty& observer_property) {
observer_map = new QMap<QString,QVariant>(observer_property.observerMap());
setObjectName(observer_property.objectName());
setParent(observer_property.parent());
}
~ObserverProperty() { delete observer_map; }
~SharedObserverProperty() {}
ObserverProperty() : QObject(0) {
observer_map = new QMap<QString,QVariant>;
setObjectName("Test");
}
ObserverProperty(const ObserverProperty& observer_property) {
observer_map = new QMap<QString,QVariant>(observer_property.observerMap());
setObjectName(observer_property.objectName());
setParent(observer_property.parent());
}
~ObserverProperty() { delete observer_map; }
~SharedObserverProperty() {}
To copy to clipboard, switch view to plain text mode
However the problem did not go away.
Bookmarks