[PyQt] Getting parent class for an enum
denis.rouzaud at gmail.com
Wed May 16 13:57:14 BST 2018
In the case of an enum (with Q_ENUM macro), it would be interesting to have
a way to get the parent class to be able to get the meta enum from the enum
base = type(enumValue).parentClass()
idx = base.staticMetaObject.indexOfEnumerator(type(enumValue).__name__)
metaenum = base.staticMetaObject.enumerator(idx)
Would it be possible to add this capability to sip.enumType ?
Either to return the parent class or directly the metaEnum?
Phil, how complicate is it?
Do you have any interest/plan to do it...?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt