title: How strech QTableWidget last column in any cases
body: <p>How make the last column always strech to the remaining space ?</p>
  <p>Here what I don't want to see</p>
  <p><img src="https://i.stack.imgur.com/bA8RO.jpg" alt="" /></p>
  <p>Here the code I'm using :</p>
  <pre><code>import sys
  from PyQt5.QtWidgets import *
  
  class MainWindow(QMainWindow):
      def __init__(self):
          super().__init__()
          self.resize(300, 300)
          self.show()
  
          self.tableWidget = QTableWidget()
          self.setCentralWidget(self.tableWidget)
  
          self.tableWidget.setColumnCount(2)
          self.tableWidget.setHorizontalHeaderLabels([&quot;column 1&quot;, &quot;column 2&quot;])
          self.tableWidget.setStyleSheet(&quot;QHeaderView::section{Background-color:cyan;}&quot;)
          self.tableWidget.setSortingEnabled(True)
  
          nb = 25
          self.tableWidget.setRowCount(nb)
          for i in range(nb):
              self.tableWidget.setItem(i, 0, QTableWidgetItem(&quot;A&quot;*(nb-i)))
              self.tableWidget.setItem(i, 1, QTableWidgetItem(&quot;B&quot;*(nb-i)))
          
          self.tableWidget.resizeColumnsToContents()
          self.tableWidget.horizontalHeader().setStretchLastSection(True)
  
  app = QApplication(sys.argv)
  window = MainWindow()
  sys.exit(app.exec_())
  </code></pre>
  <p>And here how to reproduce that unwanted behaviour : launch the prog, scroll right the horizontal scrollbar, then resize a bit horizontally the width of the window</p>