nightroad
29th June 2011, 13:24
Hi there,
I'm keeping enums in a namespace like that ;
namespace XXX{
enum CharCode { a=0,b,c,d,e,f,g,h,i,j,k };
}
Q_DECLARE_METATYPE(XXX::CharCode)
Is it possible to, use that kind of enumerations in qml. I can use enums if it has own class but i can't use namespaced enums at all. Thanks ...
I'm keeping enums in a namespace like that ;
namespace XXX{
enum CharCode { a=0,b,c,d,e,f,g,h,i,j,k };
}
Q_DECLARE_METATYPE(XXX::CharCode)
Is it possible to, use that kind of enumerations in qml. I can use enums if it has own class but i can't use namespaced enums at all. Thanks ...