Hi,
how to make each row of table widget not editable.
Through qt designer or through coding.
Thanks and Regards
Hi,
how to make each row of table widget not editable.
Through qt designer or through coding.
Thanks and Regards
Pass an appropriate combination of flags to QTableWidgetItem::setFlags(), leaving Qt::ItemIsEditable out.
J-P Nurmi
Hi,
I read all the flags which flag i have to use to make tablewidget item editable.
Thanks and Regards
Hi,
sorry, i want to make items in table widget not editable, by default items in table widge is editable.
Thanks and Regards
Qt Code:
// this gives you a selectable and enabled, but non-editable item item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);To copy to clipboard, switch view to plain text mode
J-P Nurmi
milli (4th May 2011)
Bookmarks