[Interest] [Qt6] QML_ATTACHED failing with ::QQmlPrivate not declared

Ulf Hermann ulf.hermann at qt.io
Mon Jan 3 10:19:15 CET 2022


> So, did I stumble on a bug?

Indeed that sounds wrong. You should not need to include qqmlprivate.h 
manually. We've moved the registration macros from qqml.h to 
qqmlregistration.h, but apparently not all their dependencies. Including 
qqml.h instead of qqmlregistration.h should work.

best regards,
Ulf


More information about the Interest mailing list