[Interest] Use QMetaEnum::keyCount() to initialise array
Tom.Isaacson at navico.com
Wed Dec 19 10:09:26 CET 2018
Is it possible to use QMetaEnum::keyCount() to initialise an array? Something like:
const QMetaEnum metaEnum = QMetaEnum::fromType<MyArray>();
It seems like Q_ENUM declares functions with Q_DECL_CONSTEXPR in C++11 but I can't figure out how to get this to work.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest