title: Qt passing QString to struct constructor doesn't work
body: <p>I've got the following struct : </p>
  
  <pre><code>struct HidItem
  {
      HidItem(){}
      HidItem(QString commandName, uint commandValue)
      {
          name = commandName;
          value = commandValue;
      }
  
      QString name;
      uint value;
  };
  </code></pre>
  
  <p>and trying to create an instance like so:</p>
  
  <pre><code>HidCommandModel::HidCommandModel()
      : QAbstractListModel(),
        hidData(new QVector&lt;HidItem&gt;(10))
  {
      HidItem *hidItem = new HidItem("USAGE_PAGE", 1);
      hidData-&gt;append(*(hidItem));
  }
  </code></pre>
  
  <p>This isn't working too well, as only the <strong>uint commandValue</strong> gets assigned to the HidItem instance, and not the <strong>QString "USAGE_PAGE"</strong></p>
  
  <p>I haven't coded C++ in quite a few years, but this seems to me that I'm passing the string incorrectly, and needs to have some kung fu involved with pass by reference, pointers and copy and write.</p>
  
  <p>The theory is there, but my practical skills are letting me down horribly today. Can anyone assist?</p>