diff options
author | Albert Astals Cid <[email protected]> | 2025-06-24 12:44:01 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <[email protected]> | 2025-06-27 20:11:14 +0000 |
commit | b879c869a3cd8e35f719e90d731772b25394cb13 (patch) | |
tree | 9089d070fbf4b8573916a5dca5299bb6f85c0a54 | |
parent | f25045f013d788bab3b07da715309ea6c9889f07 (diff) |
Document QString::QString(QStringView sv)
and mention it's since 6.8
Amends 21dfb0ebcc6b3a3408a8272ce536a1e4d53910cd
Pick-to: 6.8
Change-Id: If4e027678f64468072e379b7aca3f011bfc2ca42
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
(cherry picked from commit 513f5a9b8a6855c3c8b6ff8a45fd219c6240bc21)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 120ea13b99462fa8fb2f88aa692a9433b91eb3d0)
-rw-r--r-- | src/corelib/text/qstring.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 1d99f204ea6..03e310a04cf 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -2377,6 +2377,18 @@ void qtWarnAboutInvalidRegularExpression(const QString &pattern, const char *whe \sa fromLatin1(), fromLocal8Bit(), fromUtf8() */ +/*! + \fn QString::QString(QStringView sv) + + Constructs a string initialized with the string view's data. + + The QString will be null if and only if \a sv is null. + + \since 6.8 + + \sa fromUtf16() +*/ + /* //! [from-std-string] Returns a copy of the \a str string. The given string is assumed to be |