title: QTableWidget ordering of column labels
body: <p>I have this table that I am trying to create. <strong>I want the columns to be sorted exactly as I input it</strong>. However, when the table displays, the table columns shows the column labels in some random order, e.g., A, C, B, E, D, G, F, H. </p>
  
  <pre><code>class MyTable(Observer):
      def __init__(self, data):
          self.myTable = QTableWidget(0, len(data))
          self.myTable.setHorizontalHeaderLabels(data)
  
  data = QStringList()
  
  dataSet = {'A' , 'B', 'C', 'D', 'E', 'F', 'G', 'H'}
  
  for key in dataSet:
      data &lt;&lt; key
  
  table = MyTable(data)
  </code></pre>