Browse Source
Use <QtQml/qqmlregistration.h> instead of <QQmlEngine>. It's
possible to switch to his header now[^1] that we are using Qt >= 6.2.
[^1]: d8e9e1a2b6, qt: update to Qt 6
When we rely on QML_ELEMENT, QML_VALUE_TYPE, or QML_NAMED_ELEMENT, the
MOC must be able to find those defines.
The QtQmlIntegration header is the proper[^2] to include to add support
for those registration macros but only appears starting with Qt 6.9. The
qqmlintegration.h header is the one transitively included by QQmlEngine
that provides those features starting with Qt 6.2.
[^2]: https://doc.qt.io/qt-6/qqmlintegration-h.html
pull/198/head
committed by
Felix Paul Kühne
2 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue