ui->infoViewTW->setEditTriggers(QAbstractItemView::NoEditTriggers);
enum QAbstractItemView::EditTrigger flags QAbstractItemView::EditTriggers This enum describes actions which will initiate item editing. Constant Value Description QAbstractItemView::NoEditTriggers 0 No editing possible. QAbstractItemView::CurrentChanged 1 Editing start whenever current item changes. QAbstractItemView::DoubleClicked 2 Editing starts when an item is double clicked. QAbstractItemView::SelectedClicked 4 Editing starts when clicking on an already selected item. QAbstractItemView::EditKeyPressed 8 Editing starts when the platform edit key has been pressed over an item. QAbstractItemView::AnyKeyPressed 16 Editing starts when any key is pressed over an item. QAbstractItemView::AllEditTriggers 31 Editing starts for all above actions. The EditTriggers type is a typedef for QFlags<EditTrigger>. It stores an OR combination of EditTrigger values.