Qt Code:
  1. import QtQuick 1.1
  2. import QtDesktop 0.1
  3.  
  4. Window {
  5. width: 600
  6. height: 400
  7.  
  8. MenuBar{
  9. Menu {
  10. text: "It does"
  11.  
  12. MenuItem {
  13. text:"not appear!!"
  14. }
  15. }
  16. }
  17.  
  18. Window{
  19. id: window1
  20. width: 600
  21. height: 400
  22. MenuBar{
  23. Menu {
  24. text: "But it"
  25.  
  26. MenuItem {
  27. text:"does!!"
  28. }
  29. }
  30. }
  31. ToolBar {
  32. ToolButton {
  33. text: "Play"
  34. anchors.verticalCenter: parent.verticalCenter
  35. onClicked: window1.visible = !window1.visible
  36. }
  37. }
  38. }
  39.  
  40. ToolBar {
  41. id: toolbar
  42. anchors.right: parent.right
  43. anchors.left: parent.left
  44.  
  45. ToolButton {
  46. id: toolPlay
  47. text: "Play"
  48. anchors.left: toolDownload.right
  49. anchors.verticalCenter: parent.verticalCenter
  50. onClicked: window1.visible = !window1.visible
  51. }
  52. }
  53. }
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.