title: How to change QML-model to C++ model?
body: <p>I have got a simple program with QML-model</p>
  
  <pre><code>import QtQuick 2.12
  import QtQuick.Window 2.12
  import QtQuick.Layouts 1.12
  import QtQuick.Shapes 1.12
  Window {
      visible: true
      width: 640
      height: 480
      title: qsTr("Hello World")
      ListModel {
          id: lstmdl
          ListElement{
              name: "Arthur Morgan"
          }
  
          ListElement{
              name: "Dutch van der Linde"
          }
  
          ListElement{
              name:  "John Marston"
          }
      }
  
      Rectangle{
          width: parent.width / 3
          height: parent.height
          ListView{
              anchors.fill: parent
              model: lstmdl
              spacing: 9
              delegate: Text {
                  text: name
              }
          }
      }
  }
  </code></pre>
  
  <p>How to present this model in C++ and show it to QML. I know about I need to make a class, who inherit <code>QAbstractListModel</code> and implement some methods in that class. But </p>
  
  <ol>
  <li><p>why these methods should be implemented specifically? </p></li>
  <li><p>How do I know the methods that have to be implemented?</p></li>
  <li><p>What does each of these methods do?</p></li>
  </ol>