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. How can I change the behaviour of keyboardSearch
Qt 6.11 is out! See what's new in the release blog

How can I change the behaviour of keyboardSearch

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 764 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.
  • K Offline
    K Offline
    kenchan
    wrote on last edited by
    #1

    Hi,

    I want to change the behaviour of QAbstractItemView::keyboardSearch without subclassing it?

    The reason I want to change it is because it does not search correctly for integers which are left padded with spaces... for instance if I key in 19 it will either jump to 1000 or 1900 depending on how fast I key it in. I want it to find 19.

    Is there a way to change this behaviour without subclassing the QAbstractItemView?

    Thanks.

    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