For doing that:
create a subclass of QObject,
add an enum declaration,
declare it using Q_ENUM and
register the object with qmlRegisterType
↧