Don't use AppMenuModel in AppMenuApplet
That's in a plugin we don't link against here, we only see its header. This happens to work with Qt5, but Qt6 wants fully defined types for properties. Use a QAbstractItemModel pointer instead, we only access that API anyway, and for QML the difference doesn't matter.