You need ApplicationWindow. See example there
MenuBar QML QtQuick.Controls 1.0
Pregunta
import QtQuick 2.0
import QtQuick.Controls 1.0
Item {
MenuBar {
id: ee
Menu {
title: "File"
MenuItem { text: "Open..." }
MenuItem { text: "Close" }
}
Menu {
title: "Edit"
MenuItem { text: "Cut" }
MenuItem { text: "Copy" }
MenuItem { text: "Paste" }
}
}
}
I hoped to see a menubar as an output, but I got nothing. Please point out what did I miss.
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow