title: QTableWidget or QTableView for adding a row?
body: <p>I want to make something like a log for TCP packets. And I am trying use QTableWidget, but not sure if that is the right way:</p>
  
  <pre><code>    int index = ui-&gt;lwHistory-&gt;rowCount(); //get index to new row (adding to the end)
      ui-&gt;lwHistory-&gt;insertRow(index); 
      // Fill the row in that way (think - it's bad way)
      ui-&gt;lwHistory-&gt;setItem(index, 0, new QTableWidgetItem(QString::number(startTime.elapsed())));
      ui-&gt;lwHistory-&gt;setItem(index, 1, new QTableWidgetItem("ETH"));
      ui-&gt;lwHistory-&gt;setItem(index, 2, new QTableWidgetItem(""));
      ui-&gt;lwHistory-&gt;setItem(index, 3, new QTableWidgetItem("Connected"));
      ui-&gt;lwHistory-&gt;setItem(index, 4, new QTableWidgetItem("OK"));
      ui-&gt;lwHistory-&gt;setRowHeight(0, 20);
  </code></pre>
  
  <p>Now, I want to pass all 5 items like one row with signal <code>newPacket(...)</code>, emitted in <code>class Ethernet</code> connected to the <code>onNewPacket(...)</code> slot in <code>MainWindow</code>.</p>
  
  <p>I want to pass only one parameter in the signal because the fields count may increase. Maybe there is right way to pass a row for QTableWidget/QTableView? Do I need use QTableWidget or QTableView?</p>