[Qt-interest] Sort/Filter model with different regexp for different columns
jjDaNiMoTh
jjdanimoth at gmail.com
Wed Feb 24 23:22:46 CET 2010
Hello list,
I have a QTableView that display a QSqlRelationalTableModel. I use a
custom widget to let users to search in the model, and I use a
QSortFilterProxyModel, that works great, only when I have one QRegExp
for one column (and no more), to filter.
If I have more QRegExp, one for column (p.e. I have 5 columns, and 3
QRegExp for column 0, 2 and 3), and I want to filter these by AND / OR
condition, I will need to reimplement some methods (like
filterAcceptsRow, and more more...).
I searched in the archives, I see it's a common task. There is someone
that had already implemented this (GPL/LGPL)?
Many thanks
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
More information about the Qt-interest-old
mailing list