Thanks John,
The tab key navigation is disabled. In the table I want to disable editing of the 1st column, and the rest of the 2 columns should be editable by mouse clicks only (not by tab key navigation).
for(int r=0;r<ui->tableWidget->rowCount();r++)
for(int c=0;c<ui->tableWidget->columnCount();c++)
{
if(c == 0)
ui->tableWidget->item(r,c)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled);
}
for(int r=0;r<ui->tableWidget->rowCount();r++)
for(int c=0;c<ui->tableWidget->columnCount();c++)
{
if(c == 0)
ui->tableWidget->item(r,c)->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled);
}
To copy to clipboard, switch view to plain text mode
Thanks and regards.
Manmohan
Bookmarks