Inbuilt searching in pyside6 for qtableview
Unsolved
Qt for Python
-
So I have made a GUI with the following constraints:
- populating table data in qtableview using QAbstractablemodel
- Switching the data in the table using button( I populate two csv's using this button)
I want to have an in-built searching feature in qtableview in each cell of row 0 in order to search the columns
What happens is on using custom delegate in qtableview and switching the data, my search row disappears. It also disappears when i start typing in the cell.
I tried searching for a lot of examples and found this is possible in qtablewidget. But i dont want to change my code to that. It will be a lot of rework. How do I make this work on qtableview
-
Hi,
You can use a proxy model, you can also use a different widget like the frozen column example shows.
Or you can simply have a generic search and set which row the search applies to.