qt: I would like to disable the key bindings automatically set for a QTreeView
问题 I am using PyQt4 and a QTreeView (although this could just as easily apply to qt directly). Right now there are default key bindings that control the expanding/collapsing of branches using the right and left arrows. Unfortunately, these bindings are not ideal and I would like to disable them. I have not been able to figure out how to do that. Does anyone know how to disable (or reassign) the default key bindings on a QTreeView? 回答1: There are two possible options for you: 1) Reimplement the