This is not needed, you can safely throw this piece of code to trash.See QAbstractItemView::editTriggers.
It should be:While creating the list widget items, i am setting the item flags as:
Qt Code:
item->setFlags (item->flags () & Qt::ItemIsEditable);To copy to clipboard, switch view to plain text mode
Qt Code:
item->setFlags (item->flags () | Qt::ItemIsEditable);To copy to clipboard, switch view to plain text mode
Bookmarks