Reputation: 22906
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.
Upvotes: 1
Views: 576