I am using a QTableWidget
that I fill it with text only items. If I select a cell and press a key, the selection changes to a cell that has the pressed key as its starting letter. How can I disable this behavior?
You need to define your own TableWidget class inheriting the QTableWidget class and override the virtual keyboardSearch() function with an empty implementation. This will disable the keyboard search functionality.
class MyTableWidget : public QTableWidget
{
...
public:
virtual void keyboardSearch(const QString& search) {};
...
};