PDA

View Full Version : MenuBar QML QtQuick.Controls 1.0



TheIndependentAquarius
23rd December 2013, 09:05
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.**

wysota
23rd December 2013, 09:11
Where did you expect to see the menu bar? You don't have an application window.

TheIndependentAquarius
24th December 2013, 11:12
Thankful.

I "need" to study the basics of Qt.