I have re-implemented below functions in my model.


Qt Code:
  1. QVariant data( const QModelIndex & index, int role = Qt::DisplayRole ) const ;
  2. bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
  3. Qt::ItemFlags flags( const QModelIndex &index ) const;
  4. QVariant headerData( int section, Qt::Orientation orientatio, int role = Qt::DisplayRole ) const;
  5. virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const;
  6. virtual QModelIndex parent( const QModelIndex &index ) const;
  7. int rowCount( const QModelIndex &parent = QModelIndex() ) const;
  8. virtual bool hasChildren ( const QModelIndex & parent = QModelIndex() ) const;
  9. int columnCount( const QModelIndex &parent = QModelIndex() ) const { return m_columnCount; }
To copy to clipboard, switch view to plain text mode 

And I am using proxy model too for filtering data, here i re-implement filterAcceptsRow().
If more info is needed, Please let me know.

Thnaks.