Kirigami.ApplicationWindow menuBar property broken or Human Interface Guidelines website is outdated
The examples from the KDE Human Interface Guidelines website on how to add a MenuBar seem to be outdated or the feature isn't working as intended: https://hig.kde.org/components/navigation/menubar.html
I get the following error when attaching a MenuBar to the Kirigami.ApplicationWindow's menuBar property:
Cyclic dependency detected between "file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/Units.qml" and "file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/Units.qml" QQmlApplicationEngine failed to load component qrc:/main.qml:481:14: Cannot assign object of type "MenuBar" to property of type "QQuickItem*" as the former is neither the same as the latter nor a sub-class of it.
I can use the MenuBar if I don't assign it to the menuBar property, but then I cannot use Action as a menu item, for it doesn't show. Instead I'm currently using MenuItem as shown in Qt's documentation for MenuBar. https://doc.qt.io/qt-5/qml-qtquick-controls-menubar.html
Since I don't know if this is a problem with HIG's documentation or Kirigami itself, I'm reporting to both projects. Here's a link to my issue on HIG' git: documentation/hig-kde-org#22 (closed)
Some information regarding my system
Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb" OS: KDE neon User Edition 5.20 [linux version 5.4.0-56-lowlatency]