title: Qt - Centering a checkbox in a QTable
body: <p>In QtCreater I added a table to my project. in my code I am generating some data to output into the table. I want to add a <code>QCheckbox</code> into each row to allow the row to be selected. All the content of the table is aligned left, how do I make only these checkboxes in the first column of every row align to the center?</p>
  
  <p>I'm adding the <code>QCheckbox</code> using:</p>
  
  <pre><code>ui-&gt;data_table-&gt;setCellWidget(rowCount,0, new QCheckBox);
  </code></pre>