Qsortfilterproxymodel Does Not Apply Caseinsensitive
As I've subclassed QSortFilterModel to be able to search thru several coloumns in a QListView, the CaseInsensitive option no longer works. Ive tried to apply it as follows: class
Solution 1:
The sensitivity you set there only applies to the default filterAcceptsRow
implementation. If you override it, you'll need to handle this yourself, by doing something like:
returnany(self.filterString.casefold() in row[col].casefold() for col in self.filterColumns))
(see the str.casefold docs)
Post a Comment for "Qsortfilterproxymodel Does Not Apply Caseinsensitive"