import QtQuick 1.1
import QtDesktop 0.1
Window {
width: 600
height: 400
MenuBar{
Menu {
text: "It does"
MenuItem {
text:"not appear!!"
}
}
}
Window{
id: window1
width: 600
height: 400
MenuBar{
Menu {
text: "But it"
MenuItem {
text:"does!!"
}
}
}
ToolBar {
ToolButton {
text: "Play"
anchors.verticalCenter: parent.verticalCenter
onClicked: window1.visible = !window1.visible
}
}
}
ToolBar {
id: toolbar
anchors.right: parent.right
anchors.left: parent.left
ToolButton {
id: toolPlay
text: "Play"
anchors.left: toolDownload.right
anchors.verticalCenter: parent.verticalCenter
onClicked: window1.visible = !window1.visible
}
}
}
import QtQuick 1.1
import QtDesktop 0.1
Window {
width: 600
height: 400
MenuBar{
Menu {
text: "It does"
MenuItem {
text:"not appear!!"
}
}
}
Window{
id: window1
width: 600
height: 400
MenuBar{
Menu {
text: "But it"
MenuItem {
text:"does!!"
}
}
}
ToolBar {
ToolButton {
text: "Play"
anchors.verticalCenter: parent.verticalCenter
onClicked: window1.visible = !window1.visible
}
}
}
ToolBar {
id: toolbar
anchors.right: parent.right
anchors.left: parent.left
ToolButton {
id: toolPlay
text: "Play"
anchors.left: toolDownload.right
anchors.verticalCenter: parent.verticalCenter
onClicked: window1.visible = !window1.visible
}
}
}
To copy to clipboard, switch view to plain text mode
Anyone knows why menu in main windows does not appear, but menu in child window magically appears?
I'm totally confused with this behavior.
Bookmarks