问题
Using Q_ENUMS I can now "register" with Qt an enum declared inside a class that inherists from QObject. This gives me a few cool reflection features for the enum.
I'm also really enjoying the type-safe enum class introduced in C++0x. I'm wondering if you know of any announcement made by Qt developers of plans for support for the enum class.
This question vaguely asks about Qt support of C++0x features in general. I'm asking specifically about enum class. I realize that since Qt is cross-platform and supports many compilers, support for C++0x will be SLOW to roll out, but enum class is a very nice simple improvement of the core language!
回答1:
It appears that Qt 4.8 will have support for many major C++0x features (including enum class) according to this blog post.
来源:https://stackoverflow.com/questions/6513736/qt-support-for-c0x-enum-class