I'm new to Qt and Qt/QML and I am trying to setup a menubar but it doesn't show it at all.

I've copied pasted the code and still nothing(from Qt doc).

Qt Code:
  1. import QtQuick 2.0
  2. import QtQuick.Controls 1.0
  3.  
  4. ApplicationWindow {
  5. visible: true;
  6. width: 1000;
  7. height: 700;
  8. title: "App";
  9. MenuBar {
  10. Menu {
  11. title: "File"
  12. MenuItem { text: "Open..." }
  13. MenuItem { text: "Close" }
  14. }
  15.  
  16. Menu {
  17. title: "Edit"
  18. MenuItem { text: "Cut" }
  19. MenuItem { text: "Copy" }
  20. MenuItem { text: "Paste" }
  21. }
  22. }
  23. }
To copy to clipboard, switch view to plain text mode 

Can someone help?