Home > other >  SetFlags (Qt. ItemIsEditable) doesn't work
SetFlags (Qt. ItemIsEditable) doesn't work

Time:09-21

Help to set a particular cell in a QTablewidget can edit, use the code, cell but can't do anything, nor selected
item2_2=QTableWidgetItem (' test ')
Item2_2. SetFlags (Qt. ItemIsEditable)
Self. Table. SetItem (1, 1, item2_2) # control whether a elder brother can be modified

CodePudding user response:

This is qt, I also encountered the same problem
  • Related