Hello,

I'm having a problem when using a filterKeyColumn.
When I do this:
Qt Code:
  1. proxyModel->setFilterKeyColumn(-1);
To copy to clipboard, switch view to plain text mode 
It doesn't work.
I'm using the FixedString option.

Using a specific column it work ok, but with -1, that should be for all columns it doesn't work.
I've tried to change the example that comes with Qt, basicsortfiltermodel

I've just changed this method to this:
Qt Code:
  1. void Window::filterColumnChanged()
  2. {
  3. if (filterColumnComboBox->currentIndex() == 3)
  4. proxyModel->setFilterKeyColumn(-1);
  5. else
  6. proxyModel->setFilterKeyColumn(filterColumnComboBox->currentIndex());
  7. }
To copy to clipboard, switch view to plain text mode 
and add this line 62
Qt Code:
  1. filterColumnComboBox->addItem(tr("All"));
To copy to clipboard, switch view to plain text mode 

So if some ones know how to solve this problem, it would be very nice.
I'm using Windows Qt 4.3.1