I read MenuItem documentation: https://doc.qt.io/qt-5/qml-qtquick-controls2-menuitem.html
MenuItem has property subMenu but this property is read only. And I cannot find any other properties or methods to add sub menu to MenuItem.
How to add sub menu to MenuItem?
I need to handle MenuItem signal triggered and have submenu simultaneously. So using Menu class instead of MenuItem is not a solution of my problem because it does not have signal triggered.
