You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this project against Qt 5.12.
When calling qmlRegisterType<MyEnumWrapper>("my.namesapce", 1, 0, "MyEnum");QQmlPrivate::QQmlElement<T> (with T=MyEnumWrapper) complains that its destructor does not override. This is because MyEnumWrapper is not a QObject.
My current solution is to make MyEnumWrapper inherits from QObject, however I'm wondering if there is another way to register the enum to Qml that would avoid the issue altogether.
The text was updated successfully, but these errors were encountered:
Hello and thank you for this project,
I am using this project against Qt 5.12.
When calling
qmlRegisterType<MyEnumWrapper>("my.namesapce", 1, 0, "MyEnum");
QQmlPrivate::QQmlElement<T>
(withT=MyEnumWrapper
) complains that its destructor does notoverride
. This is becauseMyEnumWrapper
is not a QObject.My current solution is to make
MyEnumWrapper
inherits fromQObject
, however I'm wondering if there is another way to register the enum to Qml that would avoid the issue altogether.The text was updated successfully, but these errors were encountered: