Important: Please read the Qt Code of Conduct -

How can I change the behaviour of keyboardSearch

  • 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?


Log in to reply