Set of methods for querying QAbstractItemModel-based models. More...
Import Statement: | import QtModelsToolkit . |
Checks if model contains given value for a roleName.
mode can be Qt.CaseSensitive
or Qt.CaseInsensitive
.
Returns values (map role name -> value) for given row from a model.
Returns the index of given value of given value in the model using QAbstractItemModel::match method with Qt::MatchExactly
flag.
Note: QAbstractItemModel::match
with Qt::MatchExactly
flag performs QVariant
-based matching internally. It means that types are not compared and e.g. 4 (int) compared to string "4" will give a positive result.