title: TableWidget "Enter" keypressed current text
body: <p>I am using python, Pyside2 on my interface.</p>
  <p>I have a tableWidget and I want to get current text after press enter.
  So I have below codes:</p>
  <p>I add below function in to current page open:</p>
  <pre><code>self.ui.edit_table.keyPressEvent = self.KeyPressed
  </code></pre>
  <p>Then I add below function:</p>
  <pre><code>def KeyPressed(self, event):
      if event.key() == QtCore.Qt.Key_Return:
          print('Enter Key Pressed')
          self.ui.edit_table.setEditTriggers(QtWidgets.QTableWidget.CurrentChanged)
          print(self.ui.edit_table.item(0, 1).text())
          newListValues = []
          for i in range(0, 46):
              newListValues.append(self.ui.edit_table.item(i, 1).text())
          print(newListValues)
          newListValues.clear()
  </code></pre>
  <p>When I change the value, and press the enter I see <code>Enter Key Pressed</code> but I couldnt see new value. But if I press the enter button one more without any changing, I can see new values in newListValue. Why the new value shows me with delay ?</p>
  <p>For example item(0, 1) value is 5, when I change this value to 12 and press enter I couldnt see any changing in             <code>print(self.ui.edit_table.item(0, 1).text())</code> but when I press enter again I can see 12 value.</p>
  <p>Why this happening ?</p>