If you have enum such as
and expose it to QML, all other enums are accessible in QML code, but AllFruits returns undefined. It would be expected that it would instead return the numeric value of AllFruits.
Also, if you replace 0xffffffff with -1, the problem still persists. If you make the flag value smaller, however, like 0x00ffffff, it works in QML.