title: PyQt5 Move a QTableWidget from a cell into another one
body: <p>I have a 6x1 (6 rows, 1 columns) QTableWidget table in a PyQt5 application.</p>
  
  <p>As the program starts all table's cells are filled up with a QTableWidgetItem with a grey background</p>
  
  <pre><code>self.shaftsTable = QtWidgets.QTableWidget()
  # table setups (...)
  
  for i in range(self.nf):
      for j in range(self.nc):
          item = QtWidgets.QTableWidgetItem()
          item.setBackground(QtGui.QColor(200,200,200))
          self.shaftsTable.setItem(i, j, item)
  </code></pre>
  
  <p>Then a QtWidgets.QListWidget is placed in the lowest cell (row 5, column 0)</p>
  
  <pre><code>el = QtWidgets.QListWidget(Window)
  self.shaftsTable.setCellWidget(5, 0, el)
  </code></pre>
  
  <p>Assume the table would simulate an elevator path through 6 floors: an elevator is a QtWidgets.QListWidget that contains a list of all the passenger currently in the elevator; elevator starts from the lowest floor, hence it is placed at position (5,0) in the table.</p>
  
  <p>I want to move the elevator from cell (5,0) to cell (4,0), that is, after moving from the lowest floor to the next, the elevator will be only in cell (4,0) and not in cell (5,0).</p>
  
  <p>The following won't work because removeCellWidget() will delete the object definitively also from cell (4,0):</p>
  
  <pre><code>el = self.shaftsTable.cellWidget(5, 0)
  self.shaftsTable.setCellWidget(4, 0, el)
  self.shaftsTable.removeCellWidget(5, 0)
  </code></pre>
  
  <p>I didn't found any easy function to do what I need in PyQt documentation <a href="http://pyqt.sourceforge.net/Docs/PyQt4/qtablewidget.html" rel="nofollow noreferrer">http://pyqt.sourceforge.net/Docs/PyQt4/qtablewidget.html</a></p>
  
  <p>I tried to make a copy (with copy.deepcopy()) of elevator, place the copy in cell (4,0) and then delete the original elevator in cell (5,0) but copy.deepcopy() fails on QtWidgets.QListWidget.</p>
  
  <p>Have you got any idea or suggestion? (I'm sure there is one or more ways to solve my problems but, as newby, I cannot figure out one)</p>