title: Drag and Drop between two QTableView
body: <p>I have two QTableView which one has 10 rows and the other is empty. I want to drag a row from first table to 2nd table (empty one).</p>
  
  <pre><code>leftTableView-&gt;setModel(leftModel);
  leftTableView-&gt;resizeColumnsToContents();
  leftTableView-&gt;setDropIndicatorShown(true);
  leftTableView-&gt;setDragDropMode(QAbstractItemView::DragOnly);
  
  rightTableView-&gt;setModel(rightModel);
  rightTableView-&gt;resizeColumnsToContents();
  rightTableView-&gt;setDropIndicatorShown(true);
  //rightTableView-&gt;setAcceptDrops(true);
  rightTableView-&gt;setDragDropMode(QAbstractItemView::DropOnly);
  </code></pre>
  
  <p>in <code>rightModel</code> I have created <code>insertRow</code> function which does this:</p>
  
  <pre><code>DATA data;
  
  data.hex  = "02";
  data.name = "Command";
  data_list-&gt;insert(row, data);
  emit layoutChanged();
  return true;
  </code></pre>
  
  <p>Am I doing something totally wrong? and can someone please guide me on how to achieve drag and drop?</p>
  
  <p>Thanks </p>