Registration of custom enum in QML
Info.h
#ifndef INFO_H
#define INFO_H
#include <QObject>
class Info : public QObject
{
Q_OBJECT
public:
enum State {
Information,
Debug,
Warning,
Error
};
Q_ENUM(State)
};
#endif // INFO_HMain.cpp
Main.qml

Last updated