diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index 7ec73edf6c..2e8aeed9f5 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -1424,6 +1424,7 @@ QByteArray &QByteArray::operator=(const char *str) \since 6.8 This function is provided for STL compatibility. + It returns the maximum number of elements that the byte array can theoretically hold. In practice, the number can be much smaller, limited by the amount of memory available to the system. diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 75cbfd49c0..9eecacbf28 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -6418,6 +6418,7 @@ QString& QString::fill(QChar ch, qsizetype size) \since 6.8 This function is provided for STL compatibility. + It returns the maximum number of elements that the string can theoretically hold. In practice, the number can be much smaller, limited by the amount of memory available to the system. diff --git a/src/corelib/tools/qlist.qdoc b/src/corelib/tools/qlist.qdoc index 0a1d287bfa..6ea38f3c83 100644 --- a/src/corelib/tools/qlist.qdoc +++ b/src/corelib/tools/qlist.qdoc @@ -1336,6 +1336,7 @@ \since 6.8 This function is provided for STL compatibility. + It returns the maximum number of elements that the list can theoretically hold. In practice, the number can be much smaller, limited by the amount of memory available to the system. diff --git a/src/corelib/tools/qvarlengtharray.qdoc b/src/corelib/tools/qvarlengtharray.qdoc index 4467e0c65a..d010ba4d4c 100644 --- a/src/corelib/tools/qvarlengtharray.qdoc +++ b/src/corelib/tools/qvarlengtharray.qdoc @@ -144,6 +144,7 @@ \since 6.8 This function is provided for STL compatibility. + It returns the maximum number of elements that the array can theoretically hold. In practice, the number can be much smaller, limited by the amount of memory available to the system.