Jesper K. Pedersen
292 results
Qt's Object Model
10 November 2023
The Qt Help Text
9 November 2023
Compiling Hello World
8 November 2023
Hello World
7 November 2023
This first episode introduces Qt Widgets development with a "Hello World" example and covers foundational concepts. Jesper demonstrates the basic Qt Widgets application structure, explains the event loop mechanism that drives Qt applications, discusses the QApplication class and its role in managing the application lifecycle, and shows how to run the program.
Implementing std::invoke in C++14
19 July 2023
Adding sort_by to KDAlgorithms required implementing std::invoke for C++14 compatibility. This video provides insights into the implementation process, covering advanced C++ concepts including SFINAE and tag dispatching for template metaprogramming, if constexpr for conditional compilation, parameter packs for variadic templates, and static_assert for compile-time validation.
How to make widgets read-only in Qt
12 July 2023
QLineEdit and QTextEdit have setReadOnly() methods, but QComboBox doesn't. Making widgets read-only without truly disabling them (which prevents interactions like tab switching or scrolling) requires alternative approaches. This video explores solutions for making QComboBox and other widgets without setReadOnly() methods effectively read-only while maintaining their interactive capabilities.
Show Me Your IDE - CLion
6 July 2023
This first episode of the "Show me your IDE" mini-series features Jesper talking with CLion user Alexander Busse about his top 4 features and Qt integration. Key topics include CLion's inline annotations, the "everything runner" functionality, powerful refactoring capabilities, seamless CMake integration, Git workflow features, Qt Widgets support, Qt Designer integration, and keyboard-friendly interface design for efficient development workflow.
KDAB Training Day Announcement - 2023
29 June 2023
GitHub Co-Pilot in Qt Creator
14 June 2023
In this episode, for an application with a lot of QTableViews and QTreeViews (many with context menus), Jesper presents a solution where he does not need to add a new subclass each time he wants to set up a custom context menu. Further, a problem with the syntax, where lots of std::unique_ptrs got in the way, is discussed.
QTimers
18 May 2023
Exception Handling in Qt
10 May 2023
Structural Bindings with Qt Containers
23 March 2023
Working with Git Sub-Modules
25 January 2023
Are you already convinced and just want to download the library? We're glad you liked it: https://github.com/KDAB/KDAlgorithms I'm sure many people have told you time and time again, "Don't use raw for loops; use algorithms." Still, each time you tried, you found your code harder to read. In case you're wondering, the above simply prints […]
Adding KDAlgorithms as a Git Sub-Module
11 January 2023
This episode builds on the previous three to understand complex template code - a modified transform function that takes containers instead of iterators and returns transformed containers. The key feature is smart container reuse: when result and input containers are the same type and input is an r-value, it reuses the input container rather than creating new ones.


