Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTreeView disable scroll to letter match...
Qt 6.11 is out! See what's new in the release blog

QTreeView disable scroll to letter match...

Scheduled Pinned Locked Moved Solved General and Desktop
qtreeview
4 Posts 3 Posters 798 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      @Dariusz said in QTreeView disable scroll to letter match...:

      How can I disable this ?

      Overwrite QAbstractItemView::keyboardSearch()

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Can I ask why you want to disable that feature ?
        Its a normal UX functionality and very handy for selection.

        D 1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          Can I ask why you want to disable that feature ?
          Its a normal UX functionality and very handy for selection.

          D Offline
          D Offline
          Dariusz
          wrote on last edited by
          #4

          @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 :- )

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved