Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int size = columnCount();
- for (int i = 0; i < size; i++) {
- QTableWidgetItem *item = horizontalHeaderItem(i);
- Qt::ItemFlags flags = item->flags();
- flags &= ~Qt::ItemIsEditable;
- item->setFlags(flags);
- }
Add Comment
Please, Sign In to add comment