qtablewidget column alignment code example
Example 1: qtablewidget align center
QTableWidgetItem * protoitem = new QTableWidgetItem();
protoitem->setTextAlignment(Qt::AlignLeft);
etc...
Example 2: qtablewidget align center
QTableWidget::setItemPrototype ( const QTableWidgetItem * item )