fafa78

Untitled

Oct 2nd, 2016
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. const int size = columnCount();
  2. for (int i = 0; i < size; i++) {
  3. QTableWidgetItem *item = horizontalHeaderItem(i);
  4. Qt::ItemFlags flags = item->flags();
  5. flags &= ~Qt::ItemIsEditable;
  6. item->setFlags(flags);
  7. }
Add Comment
Please, Sign In to add comment