diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index 7ec73edf6c8..2e8aeed9f54 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 75cbfd49c05..9eecacbf289 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 0a1d287bfa9..6ea38f3c83b 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 4467e0c65ab..d010ba4d4c0 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.