Every now and then, when I submit some code for a code review, people tell me that I forgot qAsConst. Now I have one more enemy, namely: Clazy! It has also started saying this, and I guess it's about time for me to figure out what is going on. When do I need qAsConst and […]
In this blog on debugging and profiling, I would like to give you an overview of the debugging tools that exist for C and C++ applications. Automated Testing The first thing you need to do is make sure your code is properly tested. This, in itself, is not debugging, but it enables you to make […]
I will be talking about text in this post, specifically about cases where you have to handle a lot of it. We are not talking about a general solution, but a specific case that we encountered during a customer project. The Problem The project involved showing a chat room for internal communication. We developed a […]
Crowdsourced QA is rising due to faster time-to-market, reduced costs, higher quality, and increased release confidence. However, disadvantages exist, like lacking code coverage information from testers. This doesn't mean black-box testing and code coverage are mutually exclusive.
Free and Open-Source Software enables energy conservation through user autonomy (installing only needed software, using aging hardware longer) and transparency (inspecting energy demands). This talk explores how FOSS values directly influence software sustainability, announces the new FOSS measurement lab at KDAB Berlin, and presents three steps to Blauer Engel eco-certification.
Hotspot is a GUI for Linux Perf to analyze profiling data. It works with C, C++ and Qt.
You have two choices when it comes to giving a custom style to your Qt widgets. Qt Style Sheets are very convenient for getting started -- just a few CSS-like rules, and they work. It is our experience, however, that Qt Style Sheets create too much trouble and a QStyle subclass (*) gives a better […]
The nlohmann/json library is everything a developer can expect from a modern library -- easy to integrate and JSON objects are treated as first class citizens with a very intuitive API. However, it has one problem that is widely mentioned across the internet, which I'll tell you about below. Various solutions to the problem have […]
Qt is a high quality library, but it is also massive in number of features. This massive number results in a higher likelihood that there are bugs that go unnoticed lying around in its less frequently used features or combination of features. Our friends at qgis.org hired us to solve some of those issues that […]
In this edition we have: Cxx-Qt Rust Bindings for Qt - Interview with Andrew Hayzen, KDAB, Squish 7.0 released,
It is not entirely trivial to run clazy and clang-tidy from the command line, but it is rather useful to do so to either run it from CI or to make the same fixit for lots of projects. In the video, I promise a script to run over all files.
Qt Creator includes two powerful static code analysis tools: clang-tidy and clazy, which work out of the box with recent versions. These tools warn about potential errors, performance problems, and code that could be improved, helping developers identify issues before they become bugs or performance bottlenecks in production.
Version 1.3.0 of the KDE Heaptrack project was just released by KDAB's Milian Wolff. Heaptrack is a heap memory profiler on Linux-based operating systems. It can help you find hotspots that need to be optimized for reducing memory usage, memory leaks, allocation hotspots, and temporary allocations. Included in this release is a special new feature […]
Learn more about the profiling and debugging training course provided by KDAB.
Découvrez la formation débogage et profilage proposée par KDAB
Profile your application with VTune or the combination of perf and Hotspot, in order to pinpoint the performance bottlenecks in your code and verify that your changes improve performance.
This video introduces the series about debugging and profiling for C/C++/Qt applications.
This video will give you an overview of many debugging techniques and tools for C/C++ applications. This includes unit testing and other types of automated testing, code coverage, static code analysis, logging, assertions, tracing, debuggers, Gammaray, valgrind, sanitizers, and more.
GammaRay 2.11.3 has been released! GammaRay is KDAB's software introspection tool for Qt applications. Leveraging the QObject introspection mechanism, it allows you to observe and manipulate your application at runtime. This works both locally on your workstation and remotely on an embedded target. Version 2.11.3 will be the last in the 2.11 series. After this […]
When you start GDB, it takes quite a long time to parse symbols from the binary and all of its dependencies. This, however, can be cached with almost no disadvantages. Learn how, in this video.