title: How to add new menu item to QML(control version 2,1) Menu
body: <p>I had just update my QT from 5.6 to 5.8, and I found lots of qml interfaces had changed, like the Menu item.</p>
  
  <p>In 5.6, the addItem method of menu accept a string as parameter.
  In 5.8, the same function requires an object.</p>
  
  <p>And how can i construct that object?</p>
  
  <p>The document seems out-date: the local document seems 1.6 and the website seems older, the interfaces they described is obviously not the latest version. </p>
  
  <p>Where can i get the latest version of document for qml? Do I need to pay?</p>
  
  <p>here is the sample code:</p>
  
  <pre><code>import QtQuick 2.8
  import QtQuick.Controls 2.1
  
  Rectangle {
      id:rootRect
  
      Menu{
          id:menuTest
          y:90
      }
      Rectangle{
          id:testArea1
          width: 100
          height: 100
          color: "red"
  
          MouseArea{
              anchors.fill: parent
              hoverEnabled: true
              onEntered: {
                  menuTest.close();
                  menuTest.x = 0;
                  menuTest.addItem({"text":"1234245235"});
                  menuTest.open();
              }
          }
      }
  }
  </code></pre>