C++ (Qt)tableWidget->horizontalHeader()->resizeSection(int logicalIndex, int size);
C++ (Qt)tableWidget->horizontalHeader()->setResizeMode(int logicalIndex,QHeaderView::Stretch);