title: How do I access a StandardItemModel's data without registering the object?
body: <p>I have a nested listview structure where I am storing a map of QAbstractItemModels that contain a listview's children.  I can gather the correct model using an invokable method called "subModelFromId", but I am having trouble displaying the data from this model.  </p>
  
  <p>The model seems correct as the list view displays the appropriate number of items...</p>
  
  <p>I do not wish to register every model in C++ using the "setContextProperty" function, but perhaps this is essential?  Is there a way to access the data in the model without registering each model?</p>
  
  <p>QML:</p>
  
  <pre><code>ListView {
      model: items.subModelFromId(delegateID.id)
      delegate:
  
          ItemDelegate{
          Text {
              text: edit.name //????? Not working
         }
      }
  </code></pre>
  
  <p>C++ populating the model:  </p>
  
  <pre><code>QAbstractItemModel * subModel = new QStandardItemModel(this);
      const int newRow= subModel-&gt;rowCount();
      const SequenceItem newSequenceItem("PM Setup","sequence", false, "pm_setup", "done");
      subModel-&gt;insertRow(newRow);
      subModel-&gt;setData(subModel-&gt;index(newRow,0),QVariant::fromValue(newSequenceItem),Qt::EditRole);
  
      const int newRow2= subModel-&gt;rowCount();
      const SequenceItem newSequenceItem2("Test 1","test", false, "test 1", "done");
      subModel-&gt;insertRow(newRow2);
      subModel-&gt;setData(subModel-&gt;index(newRow2,0),QVariant::fromValue(newSequenceItem2),Qt::EditRole);
  
      m_subModelMap.insert("PM_ID", subModel);
  </code></pre>
  
  <p>SequenceItem.h:</p>
  
  <pre><code>#ifndef SEQUENCE_ITEM_H
  #define SEQUENCE_ITEM_H
  
  #include &lt;QObject&gt;
  
  #include "sequence_items.h"
  
  class SequenceItem
  {
      Q_GADGET
      Q_PROPERTY(QString name READ getName WRITE setName)
      Q_PROPERTY(QString status READ getStatus WRITE setStatus)
      Q_PROPERTY(bool checkedStatus READ getCheckedStatus WRITE setCheckedStatus)
      Q_PROPERTY(QString id READ getID WRITE setID)
      Q_PROPERTY(QString type READ getType WRITE setType)
  
  
  public:
      SequenceItem();
      SequenceItem(const QString&amp; name , const QString&amp;  type, bool checkedStatus, const QString&amp;  id, const QString&amp;  status );
  
      QString getName() const;
      void setName(const QString &amp;name);
  
      bool getCheckedStatus() const;
      void setCheckedStatus(bool checkedStatus);
  
      QString getID() const;
      void setID(const QString &amp;ID);
  
      QString getStatus() const;
      void setStatus(const QString &amp;status);
  
      QString getType() const;
      void setType(const QString &amp;type);
  
  private:
      QString m_name;
      bool m_checkedStatus;
      QString m_ID;
      QString m_status;
      QString m_type;
  };
  
  #endif // SEQUENCE_ITEM_H
  </code></pre>