Skip to content

Port lessThan() to the collator of Qt 6.12 - #1

Open
olafmandel wants to merge 1 commit into
menlofrom
chore/qt-6.12.0
Open

olafmandel wants to merge 1 commit into
menlofrom
chore/qt-6.12.0

Conversation

@olafmandel

Copy link
Copy Markdown
Member

Qt 6.12 removed QAbstractItemModelPrivate::isVariantLessThan(), which the vendored QSortFilterProxyModel::lessThan() called, so it no longer compiled. Do what Qt 6.12's own QSortFilterProxyModel does: keep a QCollator that sort() sets up from the locale awareness and case sensitivity, and compare with QAbstractItemModel::compareData().

Older Qt versions keep using isVariantLessThan().

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Qt 6.12 removed QAbstractItemModelPrivate::isVariantLessThan(), which
the vendored QSortFilterProxyModel::lessThan() called, so it no longer
compiled. Do what Qt 6.12's own QSortFilterProxyModel does: keep a
QCollator that sort() sets up from the locale awareness and case
sensitivity, and compare with QAbstractItemModel::compareData().

Older Qt versions keep using isVariantLessThan().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@olafmandel olafmandel self-assigned this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant