I have the following code:
Qt Code:
QList<QPersistentModelIndex> keys = indexToPlacemarkMap.keys();To copy to clipboard, switch view to plain text mode
where index is a QModelIndex and indexToPlacemarkMap is a QMultiMap<QPersistentModelIndex,GeoDataPlacemark*> .
In some cases listLookup = true and multimapLookup = false. I don't understand how this is possible. The documentation for QMultiMap::contains indicates that it searches the keys, so I would expect these two bools to always be equal. Can anyone explain to me why they might not be equal? QPersistentModelIndex(index) is checked for validity and it is valid.
Don
Bookmarks