Solved QTreeView disable scroll to letter match...
-
Hey
I just noticed that when I press a button like K/A/T/C - any button, the treeView will scroll to 1st item matching the letter. How can I disable this ?
Regards
Dariusz -
@Dariusz said in QTreeView disable scroll to letter match...:
How can I disable this ?
Overwrite QAbstractItemView::keyboardSearch()
-
Hi
Can I ask why you want to disable that feature ?
Its a normal UX functionality and very handy for selection. -
@mrjj I prefer to be able to press F to zoom in to selected items as the selection might happen in another widget. Look at 3d apps with scenegraphs. They don't use search by key.
@Christian-Ehrlicher said in QTreeView disable scroll to letter match...:
@Dariusz said in QTreeView disable scroll to letter match...:
How can I disable this ?
OVerwrite QAbstractItemView::keyboardSearch()
Thanks! Sounds like that might be it :- )