Qt Code:
  1. import QtQuick 2.0
  2. import QtQuick.Controls 1.0
  3.  
  4. Item {
  5. MenuBar {
  6. id: ee
  7. Menu {
  8. title: "File"
  9. MenuItem { text: "Open..." }
  10. MenuItem { text: "Close" }
  11. }
  12.  
  13. Menu {
  14. title: "Edit"
  15. MenuItem { text: "Cut" }
  16. MenuItem { text: "Copy" }
  17. MenuItem { text: "Paste" }
  18. }
  19. }
  20. }
To copy to clipboard, switch view to plain text mode 


**I hoped to see a menubar as an output, but I got nothing. Please point out what did I miss.**