Qt provides the Q_ENUM macro to safe me a lot of work. For converting a enum to string I can write this: QMetaEnum::fromType<Class::Enum>().
確定! 回上一頁