setSortCaseSensitivity doesn't work
-
I have no idea why, but with this code the table sorting is still case sensitive
QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);
proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
proxyModel->setFilterFixedString(ui->lineEdit_search->text());
proxyModel->setFilterKeyColumn(1);
proxyModel->setSourceModel(model); -
Hi,
in this code you're not sorting but filtering.
Where do you sort your data?? -
Yes, i need to filter the model.I have lineEdit and want this input to filter the data
-
What kind of model is
model
?QAbstractTableModel
? -
@mcosta
QSqlQueryModel