[Interest] Qt support for strongly-typed enums

Tom Isaacson Tom.Isaacson at navico.com
Sat Nov 21 08:11:41 CET 2015


>Strongly-typed enums need to be used as a completely separate type. You need to declare them as metatypes, load them into a QVariant using >QVariant::fromValue and retrieve using qvariant_cast<EnumType>().

Sorry, ignore my last email - that works fine.

Thanks!

Tom Isaacson






More information about the Interest mailing list