I have a model/view framework I'm fiddling with, where I want to enable editing... but only when I right-click on an item and click on "rename" in a menu... whereas a double-click will actually activate the item rather than edit it.
At the moment, I have editing enabled via the flags() function (Qt::ItemIsEditable), and whenever I activate (double-click) my item it also enters an edit mode. Functionally, this works... it's just a bit clunky.
If I simply disabled editing from the flags() function, could I use the built-in functionality via my "rename" menu option rather than building custom edit functions?
Bookmarks