ui->infoViewTW->setEditTriggers(QAbstractItemView::NoEditTriggers);
enum QAbstractItemView::EditTriggerflags QAbstractItemView::EditTriggersThis enum describes actions which will initiate item editing.ConstantValueDescriptionQAbstractItemView::NoEditTriggers0No editing possible.QAbstractItemView::CurrentChanged1Editing start whenever current item changes.QAbstractItemView::DoubleClicked2Editing starts when an item is double clicked.QAbstractItemView::SelectedClicked4Editing starts when clicking on an already selected item.QAbstractItemView::EditKeyPressed8Editing starts when the platform edit key has been pressed over an item.QAbstractItemView::AnyKeyPressed16Editing starts when any key is pressed over an item.QAbstractItemView::AllEditTriggers31Editing starts for all above actions.The EditTriggers type is a typedef for QFlags. It stores an OR combination of EditTrigger values.