Unsolved shortcut in menuitem is removed in QtQuick2, equivalent way?
-
hi, experts:
in qtquick1, following code can act exactly what I want:
MenuItem {
shortcut: "Ctrl+O"
text: qsTr("Open Project")
}
but in qtquick2, no shortcut property provided. if using action:
MenuItem {
action: copyAction
}
Action {
id: copyAction
text: qsTr("Copy")
shortcut: "Ctrl+C"
}
Although the function works but no "Ctrl + C" showed.
Anyone knows the equivalent way? I don't want the answer like:
"set text to "Copy (spaces.....) Ctrl + C"", it's too stupid.