I have a QTableView. And I use following code:
ui->tblCivilianFlightPlan->setModel (mModel);
ui->tblCivilianFlightPlan->resizeColumnsToContents();
ui->tblCivilianFlightPlan->horizontalHeader()->setStretchLastSection(true);
ui->tblCivilianFlightPlan->setModel (mModel);
ui->tblCivilianFlightPlan->resizeColumnsToContents();
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 ?
Bookmarks