Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum QML Registration #2

Open
xaqq opened this issue Feb 2, 2019 · 0 comments
Open

Enum QML Registration #2

xaqq opened this issue Feb 2, 2019 · 0 comments

Comments

@xaqq
Copy link

xaqq commented Feb 2, 2019

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> (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.

Repository owner deleted a comment from semlanik Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant