Hello,
I'm having a problem when using a filterKeyColumn.
When I do this:
proxyModel->setFilterKeyColumn(-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:
void Window::filterColumnChanged()
{
if (filterColumnComboBox->currentIndex() == 3)
proxyModel->setFilterKeyColumn(-1);
else
proxyModel->setFilterKeyColumn(filterColumnComboBox->currentIndex());
}
void Window::filterColumnChanged()
{
if (filterColumnComboBox->currentIndex() == 3)
proxyModel->setFilterKeyColumn(-1);
else
proxyModel->setFilterKeyColumn(filterColumnComboBox->currentIndex());
}
To copy to clipboard, switch view to plain text mode
and add this line 62
filterColumnComboBox->addItem(tr("All"));
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
Bookmarks