Archive | qt RSS for this section

QMetaEnum Magic – Serializing C++ Enums – Take 2

This post was imported from blogger, to see the original, likely better-formatted post see kalebpederson.blogspot.com. > A few posts ago I described two methods of serializing C++ enums. Of these, method 2 serialized the Qt::Key enum. The approach, however, relied on some behind the scenes magic that I wasn’t fully aware of nor did I […]

Continue Reading

QMetaEnum Magic – Serializing C++ enum’s

This post was imported from blogger, to see the original, likely better-formatted post see kalebpederson.blogspot.com. > Qt has a number of useful classes and utilities; among these is QMetaEnum which provides the ability to serialize and deserialize C++ enumerations through the use of moc, the meta-object compiler. Method 1 – Enum’s within a QObject (fairly […]

Continue Reading