title: PySide align text in a table cells?
body: <p>I have a QTable widget made in QTDesigner. In my code I setup properties of the table but I cant get text alignment working:</p>
  
  <pre><code>def __init__(self):
      super(myClass, self).__init__()
      # SETUP UI
      self.setupUi(self)
      # Table setup
      self.myTable.verticalHeader().hide()  # Hide row numbers        
      self.myTable.setColumnCount(4)
      self.myTable.setHorizontalHeaderLabels(['A', 'B', 'C', 'D'])
      self.myTable.horizontalHeader().setResizeMode(QHeaderView.Stretch)
      # This code does not work:
      # self.myTable.setTextAlignment(Qt.AlignCenter|Qt.AlignVCenter)
  </code></pre>