Details
-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
None
-
5.13.0
-
None
-
-
8
-
f4076f105 (dev), 1212298fb (6.8), ba5a2fbe7 (dev), 80b6f2e63 (dev), aa88bbbc4 (6.9)
-
Foundation Sprint 86, Foundation Sprint 87, Foundation Sprint 88, Foundation Sprint 89, Foundation Sprint 90, Foundation Sprint 91, Foundation Sprint 92, Foundation Sprint 93, Foundations Sprint 94, Foundations Sprint 95, Foundations Sprint 96, Foundations Sprint 97, Foundations Sprint 98, Foundations Sprint 99, Foundation Sprint 100, Foundation Sprint 101, Foundations Sprint 102, Foundation Sprint 103, Foundation Sprint 104, Foundation Sprint 105, Foundation Sprint 106, Foundation Sprint 107, Foundation Sprint 108, Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113, Foundation Sprint 114, Foundation Sprint 115, Foundation Sprint 116, Foundation Sprint 117, Foundation Sprint 118, Foundation Sprint 119, Foundation Sprint 120, Foundation Sprint 121, Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124, Foundation Sprint 125
Description
There are several string types in Qt like QString, QByteArray, QLatin1String, QStringLiteral, QStringRef and QStringView (not sure if there are missing some more).
For beginners (but even for advanced developers) it is hard to understand the use cases for these types.
Please add a detailed comparison chapter/table to the Qt documentation that helps selecting the right type. Don't forget to link it to each of the above types' chapters.
Maybe it could be useful to explain tr() in that context.
Attachments
For Gerrit Dashboard: QTBUG-77020 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
268079,14 | doc: Overview of Qt's string types | 5.14 | qt/qtdoc | Status: NEW | -1 | 0 |
578741,8 | Add note about Latin1StringView in UTF-8 source | dev | qt/qtbase | Status: MERGED | +2 | 0 |
580545,31 | Introduce string class overview | dev | qt/qtdoc | Status: MERGED | +2 | 0 |
595558,2 | Add note about Latin1StringView in UTF-8 source | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
605657,2 | Add QStringConverter to string class group | dev | qt/qtbase | Status: MERGED | +2 | 0 |
624372,2 | Introduce string class overview | 6.9 | qt/qtdoc | Status: MERGED | +2 | 0 |