Drag and drop rows within QTableWidget
Goal My goal is to have a QTableWidget in which the user can drag/drop rows internally. That is, the user can drag and drop one entire row, moving it up or down in the table to a different location in between two other rows. The goal is illustrated in this figure: What I tried, and what happens Once I have populated a QTableWidget with data, I set its properties as follows: table.setDragDropMode(QtGui.QAbstractItemView.InternalMove) #select one row at a time table.setSelectionMode(QtGui.QAbstractItemView.SingleSelection) table.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) Similar