You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Promote STL-style iterators as the primary way to iterate over QHash.
Replace the detailed explanation with direct guidance to use
QHash::asKeyValueRange, and move Java-style iterators to a brief
compatibility note.
Update snippets to:
- Show C++17 structured bindings with
std::as_const(hash).asKeyValueRange() (add <utility> header
std::as_const).
- Add STL-style iterator example for manual control.
- Add example for modifying values in place.
This makes the docs clearer, const-correct, and aligned with modern C++
usage.
Fixes: QTBUG-139662
Pick-to: 6.10.0 6.10 6.9 6.8
Change-Id: Ifb9698b93ca53c3c6a7c82b0f1d393105cd62f35
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
0 commit comments