Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.4.1
-
None
-
-
24da759c3 (6.4), 4f0bd0d4f (6.4), 8aeee132f (6.4)
Description
The QList documentation is a bit dated, particularly wrt iteration. When searching , one hits on the QStringList docs
https://doc.qt.io/qt-6/qstringlist.html#iterating-over-the-strings
which has some outdated iterator code or index access still using int. This should refer to the QList docs. Range-based for should be mentioned there along with std::as_const. The section "More Information on Using Qt Containers" https://doc.qt.io/qt-6/qlist.html points to https://marcmutz.wordpress.com/effective-qt/containers/ which still refers to Qt 5 (QVector et al).
Some stuff is also explained at https://doc.qt.io/qt-6/containers.html .
Looks like the QStringList doc page is an orphaned, un-indexed page since QStringList is now a typedef?