Difference between MatchFlag.MatchFixedString and MatchFlag.MatchExactly
Unsolved
General and Desktop
-
@buhtz
https://doc.qt.io/qt-6/qt.html#MatchFlag-enum where these constants are described does not make it totally clear, but this type is used:- In model item searches, such as QModelIndexList QAbstractItemModel::match(const QModelIndex &start, int role, const QVariant &value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const.
I think the
MatchFlag.MatchExactly
("PerformsQVariant
-based matching.") should allow e.g. integer model data values (models storeQVariant
s) to be compared via their actual underlying value type rather then being converted to strings, as the other constants call for.