
Originally Posted by
foggy-mind
Second problem:
In 3'rd column data is text type and has lithuanian characters (ĄČĘĖĮÅ ŲŪŽ) (if you don't see the characters set character encoding on your browser Baltic (Windows-1257)). When I'm sorting data using this column then data sorts something like that [A,B,C,D,E,F,G,...,ĄČĘĖĮ,...]. In lithuanian language sorting of text with lithuanian characters is [A,Ą,B,C,Č,D,E,Ę,Ė,F,G,...]
Subclass your model and alter QAbstractItemModel::sort();
and
item
= new QStandardItem(tr
("%0").
arg(query
->record
().
value("kk").
toString()));
item = new QStandardItem(tr("%0").arg(query->record().value("kk").toString()));
To copy to clipboard, switch view to plain text mode
could be easily written as
item
= new QStandardItem(query
->record
().
value("kk").
toString());
item = new QStandardItem(query->record().value("kk").toString());
To copy to clipboard, switch view to plain text mode
Bookmarks