connect(ui->widget,SIGNAL(cellDoubleClicked(int,int)),this,SL OT(column_check(int,int)));
void Saleorder::column_check(int row,int column)
{
QTableWidgetItem* itemtot=ui->widget->item(row, 9);
if( column == 9 )
{
if (itemtot && !itemtot->text().isEmpty())
{
itemtot->setFlags(Qt::ItemIsSelectable|Qt::ItemIsEnabled );
}
}
}
i tried this but the program is crashed.
Any one help me solve the problem.
Is there is any other way to achieve to make the entire column as not editable
Thanks in advance
Bookmarks