Qt Code:
  1. QTableWidget::horizontalHeader().setStretchLastSection(true);
To copy to clipboard, switch view to plain text mode 
Worked. Thanks