QMetaEnum: Serializing C++ Enums
I think that almost every C++ programmer looked into a nice and easy way to do C++ Enum serialization. You may want to store the Enum value in a human readable format (json, ini, ..) and later you may also want to read back the value into the object. You have here two way how to archive your goal. Use simple int values to represent the Enum value or use Strings....