title: How can I enable / disable QTableWidget's horizontal / vertical header?
body: <p>If I set the horizontalHeaderVisible or verticalHeaderVisible attribute to false in Qt Designer, this works fine. But how can I enable / disable headers in my code? I've been trying something like this:</p>
  
  <pre><code>self.ui.tblContents.horizontalHeaderVisible = False
  </code></pre>