Qt support for C ++ class 0x enum

Using Q_ENUMS Now I can "register" with Qt an enumdeclared inside a class that inherits from QObject. This gives me some interesting reflection functions for enum.

I also really like the safe type enum classintroduced in C ++ 0x. I am wondering if you are aware of any statement by Qt developers about support plans enum class.

This question vaguely asks about Qt's support for C ++ 0x functions in general. I specifically ask about enum class. I understand that since Qt is cross-platform and supports many compilers, C ++ 0x support will be SLOW for deployment, but enum classis a very nice simple improvement to the main language!

+3
source share
1 answer

It seems that Qt 4.8 will support many of the core C ++ 0x features (including enum class) according to this blog post .

+7
source

Source: https://habr.com/ru/post/1612252/


All Articles