title: C++ QAbstractListModel server side, QML ListView client side
body: <p>I create a client/server application in which I load the qml files on the client from the server with something like:</p>
  
  <pre><code>QQmlApplicationEngine engine;
  engine.addImportPath("http://127.0.0.1/qmldir"); //127.... to test locally
  engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
  </code></pre>
  
  <p>In one qml file, I have a ListView which model has to be created from a C++ class, which inherits from QAbstractListModel, and above all, which is on the server side of the application (the client only has qml file for interface).</p>
  
  <p>So I would like to use a QAbstractListModel as I want to use the ListView "normally" that's to say click on an item of the list, when I drag the list to display the next or previous items, the list is updated, ..., as if it wasn't a client/server application.
  I have something like:</p>
  
  <p>Client side, qml for the interface:</p>
  
  <pre><code>MyModel{
      id:myModel
  }
  
  ListView{
      id:listView
      model: myModel
      ...
  }
  </code></pre>
  
  <p>C++ class on the server:</p>
  
  <pre><code>class MyModel : public QAbstractListModel
  {
      ...
  }
  </code></pre>
  
  <p>So I wonder how to connect those two elements, if it's possible or not? Or what is the best way to do that?</p>
  
  <p>Thanks.</p>