Doc: Documentation for QList classes should mention how to sort them

Added a statement in the QList descriton and linked it to the
Qt containers and std algorithms

Fixes: QTBUG-94993
Pick-to: 6.8
Change-Id: I12b75d147cb6e80036133547cc6365b3325c7e28
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Jaishree Vyas 2024-07-18 12:29:22 +02:00
parent 0231f33ad1
commit 4f66c10ba2

View File

@ -130,6 +130,9 @@
per-function basis.
For iterating over the items, see \l {Iterating over Containers}.
For using QList with functions from \c {<algorithm>} header, such as
\c {std::sort()}, \c {std::reverse()}, and \c {std::count_if()},
see \l {Qt containers and std algorithms}.
In addition to QList, Qt also provides QVarLengthArray, a very
low-level class with little functionality that is optimized for