This episode shows a simple Linux script to run backup of your source files every ten minutes.
All Qt developers should know about signals, slots, and properties. Those of you who have used QML will know that property bindings are super useful and cool. Bindings allow us to write more reactive and declarative style code. However, they are only available within QML, which means there are no compile time errors when you […]
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.
In a well-designed QML application, the UI is built using re-usable components, while the data and logic live in C++ based components we call controllers here. The QML part of the application uses these components (that themselves may be written in QML or C++) to build up the user interface and connect these components with […]
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 […]
Model/View programming is notoriously difficult. Your carefully crafted models may work fine with single views but struggle with multiple views or proxy models added later. Qt's QAbstractItemModelTester helps catch these issues. This video demonstrates an automatic testing class and explains what the model tester actually does to validate your models.
Another day, another small addition to KDToolBox, KDAB's collection of miscellaneous useful C++ classes and stuff. In this post, we're going to talk about KDFunctionalSortFilterProxyModel, which is a convenience subclass of QSortFilterProxyModel. What's a proxy model to begin with, and what's QSortFilterProxyModel? Well, that explanation requires a bigger space than what I have in this […]
For more than a year Jesper Pedersen has hosted a Youtube series focusing on Qt Widgets and everything around developing with it. In this talk, Jesper will highlight some of the most important take aways, including coding tips, and especially those relating to the model/view framework, Qt Creator power tips, and general tips relating to a software development tool.
Qt Creator has a facility for remembering different locations in your source codes. It's called bookmark, and is just like bookmarks in books.
This video will show you exactly how they work and when and how Jesper is using them.
We just released KDDockWidgets 1.5.0! What is KDDockWidgets? KDDockWidgets is a development framework for custom-tailored docking systems in Qt, to use when you need advanced docking that is not supported by QDockWidgets. It was created by Sergio Martins as a time-saving alternative to QDockWidgets. The ease-of-use of KDDockWidgets can save you lots of frustration as […]
Learn more about the profiling and debugging training course provided by KDAB.
Découvrez la formation débogage et profilage proposée par KDAB
This edition features 25 years of KDE, what's new with Qt 6 and 3D, the new KD Bindings for C++, Library of the month KItemModels, and announcements including Qt Creator 6 release candidate and meeting C++ videos.
CMake is increasingly becoming the de-facto build system for C++ projects. While it has been possible to build Qt applications using CMake for a long time, with Qt6, Qt switched its own internal build system to CMake. The KDE Community was among the first large, open-source projects that adopted CMake about 15 years ago. Over […]
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.
Imagine a treeview with lots of columns. The columns can be grouped in a number of sections, and you would like that to be visible to the users by changing their background color.
Easy-peasy, but how about adding a header on top of these columns? That is what this video will tell you how to do.
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.
Qt Creator supports a number of refactoring techniques by pressing Alt+Enter in the right places. Unfortunately, it isn't super easy to figure out where those places are. So, this and the following episode will show you all the known (to us) refactoring techniques.