Quote Originally Posted by xtal256 View Post
No, i don't want to go that far.
You don't want to trivially address the problem and would rather duplicate data? Curious, but each to their own.


Here is what you are avoiding:
Qt Code:
  1. class CheckStateFilterProxy: public QSortFilterProxyModel
  2. {
  3. Q_OBJECT
  4. public:
  5. CheckStateFilterProxy(QObject * parent = 0):
  6. { }
  7.  
  8. QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const
  9. {
  10. if (role == Qt::CheckStateRole)
  11. return QVariant();
  12. return QSortFilterProxyModel::data(index, role);
  13. }
  14. };
To copy to clipboard, switch view to plain text mode