[Development] A QStringList puzzle for Monday
Thiago Macieira
thiago.macieira at intel.com
Mon Mar 17 22:39:54 CET 2025
On Monday, 17 March 2025 13:39:42 Pacific Daylight Time Mathias Hasselmann via
Development wrote:
> To avoid bloating you code with QString{}, QStringLiteral{} or
> QLatin1String{} boilerplate after enabling QT_NO_CAST_FROM_ASCII you
> also might consider using UTF-16 string literals (u"your text") and you
> might want to use the Qt::StringLiterals namespace.
Indeed, it is much nicer to write:
"latin1 or ascii text"_L1
u"any text"_s
--
Thiago Macieira - thiago.macieira (AT) intel.com
Principal Engineer - Intel DCAI Platform & System Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5150 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20250317/5f04ef6f/attachment.bin>
More information about the Development
mailing list