#ifndef SERIALIZATIONREGISTRY_H #define SERIALIZATIONREGISTRY_H #include #include #include using ItemFactory = std::function; void registerItemFactory(const QString &type, ItemFactory factory); QGraphicsItem *createItemFromJson(const QJsonObject &obj); #endif // SERIALIZATIONREGISTRY_H