Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
7 August 2024
Qt comes with a string class, as does C++ itself (namely std::string). But in contrast to C++'s string class, Qt's counterpart has lots of powerful utilities built in, which makes it easy to do string operations. Learn all about these in this episode.
Links:
* QWAM episode - which string classes should I use? https://youtu.be/GlP0JHUUP8A?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* Documentation on QT_NO_CAST_FROM_ASCII: https://doc.qt.io/qt-6/qstring.html#QT_NO_CAST_FROM_ASCII
* QWAM episode on clazy: https://youtu.be/gO3KCzdmcrQ?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* QWAM episode on QStringBuilder: https://youtu.be/tLFYa97Zds4?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
* Peppe's talk on unicode https://www.youtube.com/watch?v=6iqtxp_88FI
* Thiago Macieira's talk at Dev Day 2014 on string https://www.youtube.com/watch?v=l2eR5b1TyVc
* Historical article about ASCII: https://en.wikipedia.org/wiki/ASCII
* QWAM episode on algorithms: https://youtu.be/iAEIPk64ZJw?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
The example code showcased in this video is available here: https://github.com/KDABLabs/kdabtv/tree/master/Programming-With-Qt-Widgets
0:00 Introduction
1:46 QString
6:06 Data from Strings
6:46 Free Offer
7:15 QByteArray
9:25 Lowlevel API
12:05 String Methods
14:59 String Concatenation
17:05 Translation
22:22 String Length
26:30 Conclusion
All 'Introduction to Qt Widgets - Module 1' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6hgf7zCKF2Rv9Y0WoN8RVGf
All 'Introduction to Qt Widgets - Module 2' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6j_c41CFMprvg9EiWz0WdSy
All 'Introduction to Qt Widgets - Module 3' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6hWZO_viEf1rfjgk4E6SCKd
All 'Introduction to Qt Widgets - Module 4' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6iXUNQMb2GkEjV_oK6Xid9-
All 'Introduction to Qt Widgets - Module 5' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6h1tsLAETdrrFlsVMeYpiHI
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more