I have a QTableView. And I use following code:
Qt Code:
  1. ui->tblCivilianFlightPlan->setModel (mModel);
  2. ui->tblCivilianFlightPlan->resizeColumnsToContents();
  3. ui->tblCivilianFlightPlan->horizontalHeader()->setStretchLastSection(true);
To copy to clipboard, switch view to plain text mode 

Content of header display ok. But I use multi-language for my app, and when I switch language, the content doesn't show completely.
How can I make the header auto resizing to content ?