Thanks for the quick reply.
So it should behave the way I want by default? Very strange.
Here's my code which sets up the view:
ui->tableView->setColumnWidth(0, 200);
ui->tableView->setColumnWidth(1, 150);
ui->tableView->verticalHeader()->hide();
ui->tableView->horizontalHeader()->setStretchLastSection(true);
ui->tableView->resizeColumnsToContents();
ui->tableView->setColumnWidth(0, 200);
ui->tableView->setColumnWidth(1, 150);
ui->tableView->verticalHeader()->hide();
ui->tableView->horizontalHeader()->setStretchLastSection(true);
ui->tableView->resizeColumnsToContents();
ui->tableView->setSelectionMode(QAbstractItemView::SingleSelection);
ui->tableView->setEditTriggers(QAbstractItemView::DoubleClicked);
To copy to clipboard, switch view to plain text mode
I didn't see anything strange in there, but I tried commenting out all of the above and got the same behavior as before.
My platform is qt 4.6.2-1 running on kde 4.4.0. Do you think it could be a platform issue?
Thanks again.
Bookmarks