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 September 2022
Did you know that almost for free you can speed up your Qt applications, by adding a single define to enable QStringBuilder?
What's the catch you may ask - the answer is your code may fail to compile in a few places, and what's worse, it might crash in a few places. The good news, however, is that the crashes will be warned about by clazy, and of course the compile errors by your compiler :-)
Links:
* Original blogpost on QStringBuilder https://www.qt.io/blog/2011/06/13/string-concatenation-with-qstringbuilder
* Video on Clazy: https://youtu.be/gO3KCzdmcrQ?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
0:00 Introduction
1:37 What is QStringBuilder
4:46 Why isn't it on by default?
6:14 ... because code might not compile
7:15 ... because storing in auto can be troublesome
8:57 but not a big issue
10:09 ...turn on warnings in clazy
All QML tips and tricks videos : https://www.youtube.com/playlist?list=PL6CJYn40gN6jWHP5krsQrVGyYtKh3A3be
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI