Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
struct enum qml
-
Can I expose the enum of a struct marked as Q_GADGET and the enum with Q_ENUM to qml?
qmlRegisterType<IsNowStruct>("IsNowStruct", 1, 0, "IsNowStruct"); // works if it s class, fails if it is struct.
-
I found that it still has to be a QObject derived type.
-
I found that it still has to be a QObject derived type.