How can I have Menubars in QtQuick Controls 2? It used to be like this (in ApplicationWindow):
menuBar: MenuBar {
Menu {
title: qsTr('File')
MenuItem {
text: qsTr('&Test')
onTriggered: console.log('test')
}
MenuItem {
text: qsTr('&Exit')
onTriggered: Qt.quit();
}
}
}
But after upgrading to Qt 5.7 it gives this error: Invalid property name "menuBar".(M16)
P.S. it used to use device's native menu system, for example on OS X it used native screen's topbar menubar, on Linux and Windows it used native in application topbar menubar, etc.