QTableWidgetItem.setAlignment code example
Example 1: qtablewidget align center
QTableWidgetItem * newitem = protoitem->clone();
tableWidget->setItem(0,0, newitem);
Example 2: qtablewidget align center
QTableWidget::setItemPrototype ( const QTableWidgetItem * item )