MenuBar QML QtQuick.Controls 1.0
Code:
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.**
Re: MenuBar QML QtQuick.Controls 1.0
Where did you expect to see the menu bar? You don't have an application window.
Re: MenuBar QML QtQuick.Controls 1.0
Thankful.
I "need" to study the basics of Qt.