PDA

View Full Version : How to use enums in qml



nightroad
29th June 2011, 14: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 ...